Add Japanese locale (ja) support (#1810)
* Add Japanese locale (ja) support - New: ja.ts with 2624 UI translation keys - New: ja.settings.ts with 1789 settings translation keys - Registered ja in runtime.ts (Locale type, LOCALES, LOCALE_LABEL_KEYS, normalizeLocale) - Added ja-JP BCP-47 mapping in intl.ts - Added JA_MESSAGES in bootstrap.ts - Added ja to lazy-load dictionary map in store.ts - Updated messages.test.ts with ja dictionary - Added common.language.japanese to all 8 existing locale files * fix(i18n): complete Japanese locale updates * test(i18n): enforce locale key parity * docs: add Japanese documentation --------- Co-authored-by: yuchi0531 <yuchi0531@users.noreply.github.com> Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
committed by
GitHub
co-authored by
yuchi0531
Bohdan Triapitsyn
parent
b384deb812
commit
eb051f969e
@@ -11,6 +11,7 @@ const INTL_LOCALE_BY_LOCALE: Record<Locale, string> = {
|
||||
'pt-BR': 'pt-BR',
|
||||
ko: 'ko-KR',
|
||||
pl: 'pl-PL',
|
||||
ja: 'ja-JP',
|
||||
};
|
||||
|
||||
const getIntlLocale = (locale: Locale): string => INTL_LOCALE_BY_LOCALE[locale] ?? 'en-US';
|
||||
|
||||
Reference in New Issue
Block a user