SettingsWindow: add i18n support

This commit is contained in:
Ly-sec
2025-09-24 13:20:49 +02:00
parent 31db195087
commit 2285a3fb18
19 changed files with 1760 additions and 382 deletions
+3 -3
View File
@@ -12,17 +12,17 @@ ColumnLayout {
spacing: Style.marginL * scaling
NHeader {
label: "Manage Wi-Fi and Bluetooth connections."
description: I18n.tr("settings.network.section.description")
}
NToggle {
label: "Enable Wi-Fi"
label: I18n.tr("settings.network.wifi.label")
checked: Settings.data.network.wifiEnabled
onToggled: checked => NetworkService.setWifiEnabled(checked)
}
NToggle {
label: "Enable Bluetooth"
label: I18n.tr("settings.network.bluetooth.label")
checked: Settings.data.network.bluetoothEnabled
onToggled: checked => BluetoothService.setBluetoothEnabled(checked)
}