From 0bedbb26632c7955f14ab5af7972c8bdb18629c4 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 28 Sep 2025 21:11:22 +0800 Subject: [PATCH] feat: change default language to Chinese with English fallback --- src/i18n/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 8c7d3e2..9408ceb 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -15,8 +15,8 @@ const resources = { i18n.use(initReactI18next).init({ resources, - lng: "en", // 默认语言设置为英文 - fallbackLng: "en", // 回退语言也设置为英文 + lng: "zh", // 默认语言调整为中文 + fallbackLng: "en", // 如果缺少中文翻译则退回英文 interpolation: { escapeValue: false, // React 已经默认转义