2
0

feat: 国际化语言默认为英语

This commit is contained in:
caiyuchao
2025-03-19 11:04:18 +08:00
parent 45fbc12de5
commit 03df615d78
3 changed files with 5 additions and 5 deletions

View File

@@ -8,13 +8,13 @@ import { localStg } from '@/utils/storage';
*
* @param lang
*/
export function setDayjsLocale(lang: App.I18n.LangType = 'zh-CN') {
export function setDayjsLocale(lang: App.I18n.LangType = 'en-US') {
const localMap = {
'zh-CN': 'zh-cn',
'en-US': 'en'
} satisfies Record<App.I18n.LangType, string>;
const l = lang || localStg.get('lang') || 'zh-CN';
const l = lang || localStg.get('lang') || 'en-US';
locale(localMap[l]);
}