Added Japanese

pull/645/head
Lugiad 2024-05-11 01:35:58 +02:00 committed by GitHub
parent 94683a4dbf
commit 21be1547c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 114 additions and 110 deletions

View File

@ -7,6 +7,7 @@ import { esConfig } from '#app/locales/es/config.js';
import { frConfig } from '#app/locales/fr/config.js';
import { itConfig } from '#app/locales/it/config.js';
import { zhCnConfig } from '#app/locales/zh_CN/config.js';
import { jpConfig } from '#app/locales/jp/config.js';
export interface SimpleTranslationEntries {
[key: string]: string
@ -59,7 +60,7 @@ export function initI18n(): void {
i18next.use(LanguageDetector).init({
lng: lang,
fallbackLng: 'en',
supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'zh_CN'],
supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'zh_CN', 'jp'],
debug: true,
interpolation: {
escapeValue: false,
@ -82,6 +83,9 @@ export function initI18n(): void {
},
zh_CN: {
...zhCnConfig
},
jp: {
...jpConfig
}
},
});