add zh_cn
This commit is contained in:
@@ -14,6 +14,7 @@ import nlMessages from '@/locales/nl/common.json';
|
||||
import plMessages from '@/locales/pl/common.json';
|
||||
import ptMessages from '@/locales/pt/common.json';
|
||||
import ruMessages from '@/locales/ru/common.json';
|
||||
import zhMessages from '@/locales/zh/common.json';
|
||||
|
||||
// Pre-loaded translations (loaded at build time, not runtime)
|
||||
const ALL_MESSAGES = {
|
||||
@@ -28,6 +29,7 @@ const ALL_MESSAGES = {
|
||||
pl: plMessages,
|
||||
pt: ptMessages,
|
||||
ru: ruMessages,
|
||||
zh: zhMessages,
|
||||
};
|
||||
|
||||
interface IntlProviderProps {
|
||||
|
||||
@@ -19,7 +19,8 @@ export function LanguageSwitcher({ className }: { className?: string }) {
|
||||
{ value: 'nl', label: 'Nederlands' },
|
||||
{ value: 'pl', label: 'Polski' },
|
||||
{ value: 'pt', label: 'Português' },
|
||||
{ value: 'ru', label: 'Русский' }
|
||||
{ value: 'ru', label: 'Русский' },
|
||||
{ value: 'zh', label: '简体中文' }
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
@@ -41,6 +41,9 @@ export default getRequestConfig(async ({ requestLocale }) => {
|
||||
case 'ru':
|
||||
messages = (await import('../locales/ru/common.json')).default;
|
||||
break;
|
||||
case 'zh':
|
||||
messages = (await import('../locales/zh/common.json')).default;
|
||||
break;
|
||||
default:
|
||||
messages = (await import('../locales/en/common.json')).default;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import { defineRouting } from 'next-intl/routing';
|
||||
|
||||
export const routing = defineRouting({
|
||||
locales: ['en', 'fr', 'de', 'es', 'it', 'ja', 'ko', 'nl', 'pl', 'pt', 'ru'],
|
||||
locales: ['en', 'fr', 'de', 'es', 'it', 'ja', 'ko', 'nl', 'pl', 'pt', 'ru', 'zh'],
|
||||
defaultLocale: 'en',
|
||||
localePrefix: 'never'
|
||||
});
|
||||
|
||||
@@ -1211,6 +1211,9 @@
|
||||
"label": "Einstellungen importieren",
|
||||
"description": "Einstellungen aus JSON-Datei hochladen",
|
||||
"button": "Importieren"
|
||||
},
|
||||
"about": {
|
||||
"title": "Bulwark Webmail"
|
||||
}
|
||||
},
|
||||
"sidebar_apps": {
|
||||
|
||||
@@ -1211,6 +1211,9 @@
|
||||
"label": "Importar Configuración",
|
||||
"description": "Cargar configuración desde archivo JSON",
|
||||
"button": "Importar"
|
||||
},
|
||||
"about": {
|
||||
"title": "Bulwark Webmail"
|
||||
}
|
||||
},
|
||||
"sidebar_apps": {
|
||||
|
||||
@@ -1211,6 +1211,9 @@
|
||||
"label": "Importer les paramètres",
|
||||
"description": "Charger les paramètres depuis un fichier JSON",
|
||||
"button": "Importer"
|
||||
},
|
||||
"about": {
|
||||
"title": "Bulwark Webmail"
|
||||
}
|
||||
},
|
||||
"sidebar_apps": {
|
||||
|
||||
@@ -1211,6 +1211,9 @@
|
||||
"label": "Importa impostazioni",
|
||||
"description": "Carica impostazioni da file JSON",
|
||||
"button": "Importa"
|
||||
},
|
||||
"about": {
|
||||
"title": "Bulwark Webmail"
|
||||
}
|
||||
},
|
||||
"sidebar_apps": {
|
||||
|
||||
@@ -1211,6 +1211,9 @@
|
||||
"label": "設定をインポート",
|
||||
"description": "JSONファイルから設定をアップロード",
|
||||
"button": "インポート"
|
||||
},
|
||||
"about": {
|
||||
"title": "Bulwark Webmail"
|
||||
}
|
||||
},
|
||||
"sidebar_apps": {
|
||||
|
||||
@@ -1211,6 +1211,9 @@
|
||||
"label": "Instellingen importeren",
|
||||
"description": "Upload instellingen vanuit JSON-bestand",
|
||||
"button": "Importeren"
|
||||
},
|
||||
"about": {
|
||||
"title": "Bulwark Webmail"
|
||||
}
|
||||
},
|
||||
"sidebar_apps": {
|
||||
|
||||
@@ -1211,6 +1211,9 @@
|
||||
"label": "Importar Configurações",
|
||||
"description": "Fazer upload de configurações de arquivo JSON",
|
||||
"button": "Importar"
|
||||
},
|
||||
"about": {
|
||||
"title": "Bulwark Webmail"
|
||||
}
|
||||
},
|
||||
"sidebar_apps": {
|
||||
|
||||
@@ -1211,6 +1211,9 @@
|
||||
"label": "Импортировать настройки",
|
||||
"description": "Загрузить настройки из файла JSON",
|
||||
"button": "Импортировать"
|
||||
},
|
||||
"about": {
|
||||
"title": "Bulwark Webmail"
|
||||
}
|
||||
},
|
||||
"sidebar_apps": {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user