Update i18n.ts

This commit is contained in:
justhil 2024-05-07 19:00:03 +08:00 committed by GitHub
parent f94e71a9d7
commit 80339eb341
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 { frConfig } from '#app/locales/fr/config.js';
import { itConfig } from '#app/locales/it/config.js';
import { chsConfig } from '#app/locales/chs/config.js';
export interface SimpleTranslationEntries {
[key: string]: string
@ -58,7 +59,7 @@ export function initI18n(): void {
i18next.use(LanguageDetector).init({
lng: lang,
fallbackLng: 'en',
supportedLngs: ['en', 'es', 'fr', 'it', 'de'],
supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'chs'],
debug: true,
interpolation: {
escapeValue: false,
@ -67,6 +68,9 @@ export function initI18n(): void {
en: {
...enConfig
},
chs: {
...chsConfig
},
es: {
...esConfig
},