mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-13 11:52:18 +02:00
i18n.ts 업데이트
This commit is contained in:
parent
0a28da5800
commit
5f93d68977
@ -6,6 +6,7 @@ import { enConfig } from '#app/locales/en/config.js';
|
|||||||
import { esConfig } from '#app/locales/es/config.js';
|
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 { koConfig } from '#app/locales/ko/config.js';
|
||||||
import { zhCnConfig } from '#app/locales/zh_CN/config.js';
|
import { zhCnConfig } from '#app/locales/zh_CN/config.js';
|
||||||
|
|
||||||
export interface SimpleTranslationEntries {
|
export interface SimpleTranslationEntries {
|
||||||
@ -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', 'ko', 'zh_CN'],
|
||||||
debug: true,
|
debug: true,
|
||||||
interpolation: {
|
interpolation: {
|
||||||
escapeValue: false,
|
escapeValue: false,
|
||||||
@ -80,6 +81,9 @@ export function initI18n(): void {
|
|||||||
de: {
|
de: {
|
||||||
...deConfig
|
...deConfig
|
||||||
},
|
},
|
||||||
|
ko: {
|
||||||
|
...koConfig
|
||||||
|
},
|
||||||
zh_CN: {
|
zh_CN: {
|
||||||
...zhCnConfig
|
...zhCnConfig
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user