2
0

feat: 统一修改系统名

This commit is contained in:
caiyuchao
2025-06-18 17:15:02 +08:00
parent 6c3499b470
commit ace15a79c6
5 changed files with 20 additions and 5 deletions

2
.env
View File

@@ -1,6 +1,6 @@
VITE_BASE_URL=/
VITE_APP_TITLE="WANFi Platform"
VITE_APP_TITLE="Platform"
# the prefix of the icon name
VITE_ICON_PREFIX=icon

View File

@@ -4,6 +4,8 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="/langs/zh-cn.js"></script>
<script src="/langs/en-us.js"></script>
<title>%VITE_APP_TITLE%</title>
</head>
<body>

5
public/langs/en-us.js Normal file
View File

@@ -0,0 +1,5 @@
const enUS = {
system: {
title: 'MacroHub Platform'
}
};

5
public/langs/zh-cn.js Normal file
View File

@@ -0,0 +1,5 @@
const zhCN = {
system: {
title: 'MacroHub 平台'
}
};

View File

@@ -1,9 +1,12 @@
import zhCN from './langs/zh-cn';
import enUS from './langs/en-us';
import localeZhCN from './langs/zh-cn';
import localeEnUS from './langs/en-us';
const fullZhCN = { ...localeZhCN, ...zhCN };
const fullEnUS = { ...localeEnUS, ...enUS };
const locales: Record<App.I18n.LangType, App.I18n.Schema> = {
'zh-CN': zhCN,
'en-US': enUS
'zh-CN': fullZhCN,
'en-US': fullEnUS
};
export default locales;