Started working on localization 😏

This commit is contained in:
Donald Zou
2024-09-06 22:38:56 +08:00
parent a102a780f8
commit d458a28337
5 changed files with 29 additions and 6 deletions

View File

@@ -28,7 +28,6 @@ const checkAuth = async () => {
const router = createRouter({
history: createWebHashHistory(),
routes: [
{
name: "Index",
path: '/',

View File

@@ -0,0 +1,10 @@
[
{
"lang_id": "en",
"lang_name": "English"
},
{
"lang_id": "zh-cn",
"lang_name": "Chinese (Simplified)"
}
]

8
src/static/lang/en.json Normal file
View File

@@ -0,0 +1,8 @@
{
"Index": {
"configurationList": {
"mainTitle": "WireGuard Configurations",
"addConfigurationBtn": "Configuration"
}
}
}

View File

@@ -0,0 +1,8 @@
{
"Index": {
"configurationList": {
"mainTitle": "WireGuard 配置",
"addConfigurationBtn": "配置"
}
}
}