mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 19:02:16 +02:00
Update i18n.ts
This commit is contained in:
parent
f94e71a9d7
commit
80339eb341
@ -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 { chsConfig } from '#app/locales/chs/config.js';
|
||||||
|
|
||||||
export interface SimpleTranslationEntries {
|
export interface SimpleTranslationEntries {
|
||||||
[key: string]: string
|
[key: string]: string
|
||||||
@ -58,7 +59,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'],
|
supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'chs'],
|
||||||
debug: true,
|
debug: true,
|
||||||
interpolation: {
|
interpolation: {
|
||||||
escapeValue: false,
|
escapeValue: false,
|
||||||
@ -67,6 +68,9 @@ export function initI18n(): void {
|
|||||||
en: {
|
en: {
|
||||||
...enConfig
|
...enConfig
|
||||||
},
|
},
|
||||||
|
chs: {
|
||||||
|
...chsConfig
|
||||||
|
},
|
||||||
es: {
|
es: {
|
||||||
...esConfig
|
...esConfig
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user