Commit 8d21ef19 by 杨明

写死中文

1 parent e2d1d9c1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming@didihu.com.cn yangming@didihu.com.cn * @Author: yangming@didihu.com.cn yangming@didihu.com.cn
* @Date: 2025-04-22 09:29:21 * @Date: 2025-04-22 09:29:21
* @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn * @LastEditors: yangming@didihu.com.cn yangming@didihu.com.cn
* @LastEditTime: 2025-05-13 11:22:21 * @LastEditTime: 2025-05-14 14:55:15
* @FilePath: \glsk-ai-assistant\i18n\i18next-config.ts * @FilePath: \glsk-ai-assistant\i18n\i18next-config.ts
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -58,13 +58,13 @@ const loadLangResources = (lang: string) => ({ ...@@ -58,13 +58,13 @@ const loadLangResources = (lang: string) => ({
type Resource = Record<string, ReturnType<typeof loadLangResources>> type Resource = Record<string, ReturnType<typeof loadLangResources>>
// Automatically generate the resources object // Automatically generate the resources object
export const resources = LanguagesSupported.reduce<Resource>((acc, lang) => { export const resources = LanguagesSupported.reduce<Resource>((acc, lang) => {
acc[lang] = loadLangResources(lang) acc[lang] = loadLangResources('zh-Hans')
return acc return acc
}, {}) }, {})
i18n.use(initReactI18next).init({ i18n.use(initReactI18next).init({
lng: undefined, lng: undefined,
fallbackLng: 'en-US', fallbackLng: 'zh-Hans',
resources, resources,
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!