mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-14 12:22:19 +02:00
Added Japanese
This commit is contained in:
parent
94683a4dbf
commit
21be1547c6
@ -7,6 +7,7 @@ import { esConfig } from '#app/locales/es/config.js';
|
|||||||
import { frConfig } from '#app/locales/fr/config.js';
|
import { frConfig } from '#app/locales/fr/config.js';
|
||||||
import { itConfig } from '#app/locales/it/config.js';
|
import { itConfig } from '#app/locales/it/config.js';
|
||||||
import { zhCnConfig } from '#app/locales/zh_CN/config.js';
|
import { zhCnConfig } from '#app/locales/zh_CN/config.js';
|
||||||
|
import { jpConfig } from '#app/locales/jp/config.js';
|
||||||
|
|
||||||
export interface SimpleTranslationEntries {
|
export interface SimpleTranslationEntries {
|
||||||
[key: string]: string
|
[key: string]: string
|
||||||
@ -59,7 +60,7 @@ export function initI18n(): void {
|
|||||||
i18next.use(LanguageDetector).init({
|
i18next.use(LanguageDetector).init({
|
||||||
lng: lang,
|
lng: lang,
|
||||||
fallbackLng: 'en',
|
fallbackLng: 'en',
|
||||||
supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'zh_CN'],
|
supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'zh_CN', 'jp'],
|
||||||
debug: true,
|
debug: true,
|
||||||
interpolation: {
|
interpolation: {
|
||||||
escapeValue: false,
|
escapeValue: false,
|
||||||
@ -82,6 +83,9 @@ export function initI18n(): void {
|
|||||||
},
|
},
|
||||||
zh_CN: {
|
zh_CN: {
|
||||||
...zhCnConfig
|
...zhCnConfig
|
||||||
|
},
|
||||||
|
jp: {
|
||||||
|
...jpConfig
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user