refactor(i18n): combine localization files into one JSON per language (#2498)

This commit is contained in:
Zach
2026-09-01 17:21:32 -04:00
committed by GitHub
parent e0c8118312
commit 9bf8ca9121
801 changed files with 113488 additions and 114320 deletions
+4 -4
View File
@@ -87,10 +87,10 @@ Do not hand-edit non-English translations in regular code pull requests unless e
to do so by a maintainer. Do not pre-fill other languages' localizations with English. Empty target
strings make it easier to surface those keys for translators than copied English.
Developers should add and change source strings in `frontend/src/i18n/en/*.json`. Each JSON file is
a Transloco domain and maps to a Weblate component. When adding a new source-string domain, add the
English JSON file, add matching empty JSON files for each non-English locale, then import/export the
domain from each locale `index.ts`.
Developers should add and change source strings in `frontend/src/i18n/en.json`. Each top-level key
is a Transloco domain. When adding a new source-string domain, add a top-level key block to the
English file; other locales pick it up automatically through the English fallback until translations
arrive.
### Something isn't working