feat: 统一修改系统名
This commit is contained in:
2
.env
2
.env
@@ -1,6 +1,6 @@
|
|||||||
VITE_BASE_URL=/
|
VITE_BASE_URL=/
|
||||||
|
|
||||||
VITE_APP_TITLE="WANFi Platform"
|
VITE_APP_TITLE="Platform"
|
||||||
|
|
||||||
# the prefix of the icon name
|
# the prefix of the icon name
|
||||||
VITE_ICON_PREFIX=icon
|
VITE_ICON_PREFIX=icon
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" href="/favicon.svg" />
|
<link rel="icon" href="/favicon.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<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>
|
<title>%VITE_APP_TITLE%</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
5
public/langs/en-us.js
Normal file
5
public/langs/en-us.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
const enUS = {
|
||||||
|
system: {
|
||||||
|
title: 'MacroHub Platform'
|
||||||
|
}
|
||||||
|
};
|
||||||
5
public/langs/zh-cn.js
Normal file
5
public/langs/zh-cn.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
const zhCN = {
|
||||||
|
system: {
|
||||||
|
title: 'MacroHub 平台'
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
import zhCN from './langs/zh-cn';
|
import localeZhCN from './langs/zh-cn';
|
||||||
import enUS from './langs/en-us';
|
import localeEnUS from './langs/en-us';
|
||||||
|
|
||||||
|
const fullZhCN = { ...localeZhCN, ...zhCN };
|
||||||
|
const fullEnUS = { ...localeEnUS, ...enUS };
|
||||||
|
|
||||||
const locales: Record<App.I18n.LangType, App.I18n.Schema> = {
|
const locales: Record<App.I18n.LangType, App.I18n.Schema> = {
|
||||||
'zh-CN': zhCN,
|
'zh-CN': fullZhCN,
|
||||||
'en-US': enUS
|
'en-US': fullEnUS
|
||||||
};
|
};
|
||||||
|
|
||||||
export default locales;
|
export default locales;
|
||||||
|
|||||||
Reference in New Issue
Block a user