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

39 lines
1.0 KiB
QML

import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import "../../../../imports"
import "../../../../shared"
import "../../../../shared/status"
import "./Data/locales.js" as Locales_JSON
Item {
id: languageContainer
Layout.fillHeight: true
Layout.fillWidth: true
clip: true
property Component languagePopup: LanguageModal {}
Item {
anchors.top: parent.top
anchors.topMargin: topMargin
anchors.bottom: parent.bottom
width: profileContainer.profileContentWidth
anchors.horizontalCenter: parent.horizontalCenter
Column {
id: generalColumn
width: parent.width
StatusSettingsLineButton {
//% "Language"
text: qsTrId("language")
//% "Default"
currentValue: appSettings.locale === "" ? qsTrId("default") : appSettings.locale
onClicked: languagePopup.createObject(languageContainer).open()
}
}
}
}