Commit ac01d73
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
- Sources
- CodexBarCore
- CodexBar/Resources
- ar.lproj
- ca.lproj
- de.lproj
- en.lproj
- es.lproj
- fa.lproj
- fr.lproj
- id.lproj
- it.lproj
- ja.lproj
- ko.lproj
- nl.lproj
- pl.lproj
- pt-BR.lproj
- sv.lproj
- th.lproj
- tr.lproj
- uk.lproj
- vi.lproj
- zh-Hans.lproj
- zh-Hant.lproj
- Tests/CodexBarTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
710 | 711 | | |
711 | 712 | | |
712 | 713 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
710 | 711 | | |
711 | 712 | | |
712 | 713 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
710 | 711 | | |
711 | 712 | | |
712 | 713 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
710 | 711 | | |
711 | 712 | | |
712 | 713 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
| 710 | + | |
710 | 711 | | |
711 | 712 | | |
712 | 713 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
712 | 713 | | |
713 | 714 | | |
714 | 715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
712 | 713 | | |
713 | 714 | | |
714 | 715 | | |
| |||
0 commit comments