feat(国际化): 新增国际化-系统管理

This commit is contained in:
Zhunianya
2026-03-19 15:13:37 +08:00
parent 6e4ecef2fe
commit 81ca314d93
94 changed files with 17370 additions and 5497 deletions

View File

@@ -1,3 +1,4 @@
import Cookies from 'js-cookie';
module.exports = {
/**
* 侧边栏主题 深色主题theme-dark,浅色主题theme-light
@@ -40,5 +41,9 @@ module.exports = {
* The default is only used in the production env
* If you want to also use it in dev, you can pass ['production', 'development']
*/
errorLog: 'production'
errorLog: 'production',
/**
* 默认语言 先從cookies拿,沒有從瀏覽器語言拿,最後用'zh-CN'
*/
language: Cookies.get('language') || navigator.language || navigator.browserLanguage || 'zh-CN',
}