diff options
Diffstat (limited to 'web/src/lib/i18n/index.ts')
| -rw-r--r-- | web/src/lib/i18n/index.ts | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/web/src/lib/i18n/index.ts b/web/src/lib/i18n/index.ts index 9634712..5792835 100644 --- a/web/src/lib/i18n/index.ts +++ b/web/src/lib/i18n/index.ts @@ -48,8 +48,24 @@ locale.subscribe((value) => { } }); -/** The locales currently available in the client (for the settings picker). */ -export const availableLocales = Object.keys(tables); +/** + * The locales offered in the settings picker. In-game card text, token names, + * and display names are translated for every one of these (the `/i18n/` files); + * the UI strings themselves fall back to English for any locale beyond `en` + * (only the English UI table is ported — Phase 6 ports the rest). + */ +export const availableLocales: Locale[] = [ + 'en', + 'de', + 'es', + 'fr', + 'ko', + 'pl', + 'ru', + 'th', + 'zh', + 'zh_Hant' +]; /** * Translate a key with the active locale, falling back to English. Returns |
