feat(i18n): Implement internationalization support for your application

- Integrate the vue-i18n plugin and configure multilingual support
- Add English and Chinese translation files
This commit is contained in:
2025-10-15 15:07:47 +08:00
parent 29843bb5e5
commit 2b8f09b4b2
16 changed files with 307 additions and 26 deletions

56
src/locales/en.json Normal file
View File

@@ -0,0 +1,56 @@
{
"app": {
"title": "Spary",
"nodes": "Nodes",
"settings": "Settings",
"add": "Add",
"group": "Group",
"node": "Node"
},
"spary": {
"functionStatus": {
"on": "On",
"off": "Off"
}
},
"nodeList": {
"add": "add",
"usage": "usage: {traffic}",
"noNodes": "No nodes available"
},
"nodesFloatButton": {
"addGroup": "add group",
"addNode": "add node"
},
"addGroup": {
"title": "Add Group",
"groupName": "Group name",
"groupNameRule": "Group name must be between 1 and 15 characters.",
"subscribeUrl": "Subscribe URL",
"urlInvalid": "URL is not valid.",
"arguments": "Arguments",
"addGroupButton": "Add",
"groupExists": "Group already exists.",
"groupAdded": "Group added."
},
"addNode": {
"title": "Add Node",
"group": "Group",
"nodeAlias": "Node alias",
"arguments": "Arguments",
"addNodeButton": "Add",
"nodeAddedSuccess": "Node added successfully"
},
"common": {
"save": "Save",
"cancel": "Cancel",
"delete": "Delete",
"edit": "Edit",
"confirm": "Confirm",
"darkModeOn": "Dark Mode On",
"darkModeOff": "Dark Mode Off",
"language": "Language",
"english": "English",
"chinese": "Chinese"
}
}