Skip to content

Commit ac01d73

Browse files
tukuyomil032claudesteipete
authored
fix(i18n): localize hardcoded "tomorrow" in reset time display (#1568)
* fix(i18n): localize hardcoded "tomorrow" in reset time display UsageFormatter.resetDescription() returned the English word "tomorrow" verbatim, causing mixed-language output like "tomorrow 10:50 にリセット" under Japanese locale. Replace the hardcoded string with a new reset_tomorrow_format localization key that embeds both the word and the time argument, letting each locale control word choice and punctuation (e.g. "明日 %@" in Japanese vs "tomorrow, %@" in English). Added reset_tomorrow_format to all 18 supported language files: - ja: 明日 %@ ko: 내일 %@ zh-Hans/Hant: 明天 %@ - de/nl: morgen, %@ fr: demain, %@ es: mañana, %@ - it: domani, %@ pt-BR: amanhã, %@ pl: jutro, %@ - sv: imorgon %@ tr: yarın, %@ uk: завтра, %@ - ca: demà, %@ vi: ngày mai, %@ id: besok, %@ Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * fix: complete tomorrow localization coverage * test: make tomorrow localization proof timezone-safe * docs: unify localization changelog entry --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
1 parent ba38096 commit ac01d73

24 files changed

Lines changed: 49 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- Menu bar: reuse the icon-observation signature during provider refreshes instead of computing it twice. Thanks @abe238!
77

88
### Fixed
9-
- Localization: improve Japanese terminology consistency. Thanks @tukuyomil032!
9+
- Localization: improve Japanese terminology consistency and localize next-day reset times across all 21 app languages. Thanks @tukuyomil032!
1010

1111
## 0.36.1 — 2026-06-16
1212

Sources/CodexBar/Resources/ar.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@
707707
"Resets %@" = "إعادة التعيين %@";
708708
"Resets in %@" = "إعادة التعيين في %@";
709709
"Resets now" = "إعادة التعيين الآن";
710+
"reset_tomorrow_format" = "غدًا، %@";
710711
"Lasts until reset" = "يستمر حتى إعادة التعيين";
711712
"Updated %@" = "تحديث %@";
712713
"Updated %@h ago" = "تم التحديث %@h قبل";

Sources/CodexBar/Resources/ca.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259
"Replay selected animation" = "Reprodueix l'animació seleccionada";
260260
"Requires authentication via GitHub Device Flow." = "Requereix autenticació mitjançant el flux de dispositiu de GitHub.";
261261
"Resets: \\(reset)" = "Es reinicia: \\(reset)";
262+
"reset_tomorrow_format" = "demà, %@";
262263
"Rolling five-hour limit" = "Límit mòbil de cinc hores";
263264
"Search hourly" = "Cerques per hora";
264265
"Secondary (\\(label))" = "Secundari (\\(label))";

Sources/CodexBar/Resources/de.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@
707707
"Resets %@" = "Setzt %@ zurück";
708708
"Resets in %@" = "Zurückgesetzt in %@";
709709
"Resets now" = "Wird jetzt zurückgesetzt";
710+
"reset_tomorrow_format" = "morgen, %@";
710711
"Lasts until reset" = "Hält bis zum Zurücksetzen an";
711712
"Updated %@" = "Aktualisiert %@";
712713
"Updated %@h ago" = "Vor %@h aktualisiert";

Sources/CodexBar/Resources/en.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@
707707
"Resets %@" = "Resets %@";
708708
"Resets in %@" = "Resets in %@";
709709
"Resets now" = "Resets now";
710+
"reset_tomorrow_format" = "tomorrow, %@";
710711
"Lasts until reset" = "Lasts until reset";
711712
"Updated %@" = "Updated %@";
712713
"Updated %@h ago" = "Updated %@h ago";

Sources/CodexBar/Resources/es.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259
"Replay selected animation" = "Reproducir la animación seleccionada";
260260
"Requires authentication via GitHub Device Flow." = "Requiere autenticación mediante el flujo de dispositivo de GitHub.";
261261
"Resets: \\(reset)" = "Se reinicia: \\(reset)";
262+
"reset_tomorrow_format" = "mañana, %@";
262263
"Rolling five-hour limit" = "Límite móvil de cinco horas";
263264
"Search hourly" = "Búsquedas por hora";
264265
"Secondary (\\(label))" = "Secundario (\\(label))";

Sources/CodexBar/Resources/fa.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@
707707
"Resets %@" = "ریست %@";
708708
"Resets in %@" = "ریست ها در %@";
709709
"Resets now" = "اکنون بازنشانی می شود";
710+
"reset_tomorrow_format" = "فردا، %@";
710711
"Lasts until reset" = "تا زمان ریست ادامه دارد";
711712
"Updated %@" = "به روزرسانی %@";
712713
"Updated %@h ago" = "%@h پیش به روزرسانی شده است";

Sources/CodexBar/Resources/fr.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@
707707
"Resets %@" = "Réinitialise %@";
708708
"Resets in %@" = "Réinitialisé dans %@";
709709
"Resets now" = "Réinitialise maintenant";
710+
"reset_tomorrow_format" = "demain, %@";
710711
"Lasts until reset" = "Dure jusqu'à la réinitialisation";
711712
"Updated %@" = "%@ mis à jour";
712713
"Updated %@h ago" = "Mis à jour il y a %@h";

Sources/CodexBar/Resources/id.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@
709709
"Resets %@" = "Reset %@";
710710
"Resets in %@" = "Reset dalam %@";
711711
"Resets now" = "Reset sekarang";
712+
"reset_tomorrow_format" = "besok, %@";
712713
"Lasts until reset" = "Bertahan hingga reset";
713714
"Updated %@" = "Diperbarui %@";
714715
"Updated %@h ago" = "Diperbarui %@ jam lalu";

Sources/CodexBar/Resources/it.lproj/Localizable.strings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@
709709
"Resets %@" = "Si resetta %@";
710710
"Resets in %@" = "Si reimposta tra %@";
711711
"Resets now" = "Si resetta ora";
712+
"reset_tomorrow_format" = "domani, %@";
712713
"Lasts until reset" = "Valido fino al reset";
713714
"Updated %@" = "Aggiornato %@";
714715
"Updated %@h ago" = "Aggiornato %@ h fa";

0 commit comments

Comments
 (0)