2021-12-29 09:53:56 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property var languageModule
|
|
|
|
|
2022-07-22 11:57:48 +00:00
|
|
|
readonly property var languageModel: languageModule ? languageModule.model : null
|
2022-07-26 18:46:07 +00:00
|
|
|
readonly property string currentLanguage: languageModule ? languageModule.currentLanguage : null
|
2022-07-22 11:57:48 +00:00
|
|
|
readonly property bool isDDMMYYDateFormat: localAccountSensitiveSettings.isDDMMYYDateFormat
|
|
|
|
readonly property bool is24hTimeFormat: localAccountSensitiveSettings.is24hTimeFormat
|
2022-04-01 10:30:55 +00:00
|
|
|
|
2022-07-26 18:46:07 +00:00
|
|
|
function changeLanguage(locale) {
|
|
|
|
root.languageModule.changeLanguage(locale)
|
2022-04-01 10:30:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function setIsDDMMYYDateFormat(isDDMMYYDateFormat) {
|
|
|
|
root.languageModule.setIsDDMMYYDateFormat(isDDMMYYDateFormat)
|
|
|
|
}
|
|
|
|
|
|
|
|
function setIs24hTimeFormat(is24hTimeFormat) {
|
|
|
|
root.languageModule.setIs24hTimeFormat(is24hTimeFormat)
|
2022-04-01 10:30:55 +00:00
|
|
|
}
|
2021-12-29 09:53:56 +00:00
|
|
|
}
|