status-desktop/ui/app/AppLayouts/Profile/Sections/LanguageContainer.qml

37 lines
996 B
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
2020-05-27 21:28:25 +00:00
import "../../../../imports"
import "../../../../shared"
2021-03-24 16:28:59 +00:00
import "../../../../shared/status"
import "./Data/locales.js" as Locales_JSON
2020-05-27 21:28:25 +00:00
Item {
id: languageContainer
Layout.fillHeight: true
Layout.fillWidth: true
2021-03-24 16:28:59 +00:00
property Component languagePopup: LanguageModal {}
Item {
2021-03-24 16:28:59 +00:00
anchors.top: parent.top
anchors.topMargin: topMargin
anchors.bottom: parent.bottom
width: contentMaxWidth
anchors.horizontalCenter: parent.horizontalCenter
2021-03-24 16:28:59 +00:00
Column {
id: generalColumn
width: parent.width
StatusSettingsLineButton {
//% "Language"
text: qsTrId("language")
2021-03-24 16:28:59 +00:00
//% "Default"
currentValue: appSettings.locale === "" ? qsTrId("default") : appSettings.locale
onClicked: languagePopup.createObject(languageContainer).open()
}
}
}
2020-05-27 21:28:25 +00:00
}