i18n.ts 업데이트

This commit is contained in:
GyeongMin Lee 2024-05-11 16:14:14 +09:00 committed by GitHub
parent 0a28da5800
commit 5f93d68977
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
} }