chore(i18n): add Chinese, Japanese, and Ukrainian (translate via Weblate)

This commit is contained in:
Tom Wheeler
2026-04-22 14:45:39 +12:00
parent adf8b0a99b
commit 480de07d07
5 changed files with 25 additions and 1 deletions
+16 -1
View File
@@ -8,10 +8,13 @@ export type AvailableLocale =
| 'fr'
| 'hu'
| 'it'
| 'ja'
| 'nl'
| 'pt-BR'
| 'ru'
| 'sv';
| 'sv'
| 'uk'
| 'zh-Hans';
type AvailableLanguageObject = Record<
string,
@@ -47,6 +50,10 @@ export const availableLanguages: AvailableLanguageObject = {
code: 'it',
display: 'Italiano',
},
ja: {
code: 'ja',
display: '日本語',
},
nl: {
code: 'nl',
display: 'Nederlands',
@@ -63,6 +70,14 @@ export const availableLanguages: AvailableLanguageObject = {
code: 'sv',
display: 'Svenska',
},
uk: {
code: 'uk',
display: 'Українська',
},
'zh-Hans': {
code: 'zh-Hans',
display: '中文(简体)',
},
};
export interface LanguageContextProps {
+1
View File
@@ -0,0 +1 @@
{}
+1
View File
@@ -0,0 +1 @@
{}
+1
View File
@@ -0,0 +1 @@
{}
+6
View File
@@ -42,6 +42,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise<any> => {
return import('../i18n/locale/hu.json');
case 'it':
return import('../i18n/locale/it.json');
case 'ja':
return import('../i18n/locale/ja.json');
case 'nl':
return import('../i18n/locale/nl.json');
case 'pt-BR':
@@ -50,6 +52,10 @@ const loadLocaleData = (locale: AvailableLocale): Promise<any> => {
return import('../i18n/locale/ru.json');
case 'sv':
return import('../i18n/locale/sv.json');
case 'uk':
return import('../i18n/locale/uk.json');
case 'zh-Hans':
return import('../i18n/locale/zh-Hans.json');
default:
return import('../i18n/locale/en.json');
}