Translate the remaining shell text at display and keep translated values out of logic

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 21:50:11 -04:00
1 parent e236713d9f
commit 2b2302a279
17 files changed
+112 -25

No files matched your search

+2 -1
View File
@@ -346,6 +346,7 @@ Panel {
spacing: Style.space(2)
Text {
textFormat: Text.PlainText
text: I18n.tr("Battery")
color: root.bar.foreground
font.family: root.bar.fontFamily
@@ -483,7 +484,7 @@ Panel {
width: profileRow.cellWidth
iconText: root.profileIcon(String(modelData))
iconSize: Style.font.title
text: String(modelData).charAt(0).toUpperCase() + String(modelData).slice(1)
text: I18n.tr(String(modelData).charAt(0).toUpperCase() + String(modelData).slice(1))
fontSize: Style.font.bodySmall
foreground: root.bar.foreground
fontFamily: root.bar.fontFamily