mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-07 06:12:08 -04:00
Wrapped all missing i18n strings (#2013)
* Feat(i18n): wrapped missing strings * Feat(i18n): wrapped missing strings * feat(i18n): added pluralization to some strings * feat: updated en.json and template.json * Update en.json * Update template.json
This commit is contained in:
@@ -542,7 +542,14 @@ Item {
|
||||
}
|
||||
|
||||
StyledText {
|
||||
text: KeybindsService.loading ? I18n.tr("Shortcuts") : I18n.tr("Shortcuts (%1)").arg(keybindsTab._filteredBinds.length)
|
||||
text: {
|
||||
if (KeybindsService.loading)
|
||||
return I18n.tr("Shortcuts");
|
||||
const count = keybindsTab._filteredBinds.length;
|
||||
return count === 1
|
||||
? I18n.tr("Shortcut (%1)").arg(count)
|
||||
: I18n.tr("Shortcuts (%1)").arg(count);
|
||||
}
|
||||
font.pixelSize: Theme.fontSizeMedium
|
||||
font.weight: Font.Medium
|
||||
color: Theme.surfaceText
|
||||
|
||||
Reference in New Issue
Block a user