You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All strings are already in packages/i18n/translations/en.json, but about a hundred files import that JSON directly, src/app/layout.tsx hardcodes lang="en", and the Intl formatters in src/components/money.ts hardcode "en". Adding a language today would mean touching every file.
Proposal
A small typed lookup in packages/i18n that returns the dictionary for a locale, falling back to English for missing keys.
Locale from the user's preference, then Accept-Language, then English; dates, numbers and currency formatted with that locale.
A test that fails when a non-English dictionary has keys that English does not.
Done when
Adding packages/i18n/translations/<locale>.json is enough to ship a new language.
Then open a follow-up issue for the first translation you want to contribute.
Activity