Added language and theme switching function to login page and homepage

This commit is contained in:
choizhang
2025-03-12 00:42:12 +08:00
parent e5214f1a70
commit 7bf2d51bd0
9 changed files with 131 additions and 27 deletions

View File

@@ -10,6 +10,18 @@
"switchToDark": "Switch to dark theme"
}
},
"login": {
"description": "Please enter your account and password to log in to the system",
"username": "Username",
"usernamePlaceholder": "Please input a username",
"password": "Password",
"passwordPlaceholder": "Please input a password",
"loginButton": "Login",
"loggingIn": "Logging in...",
"successMessage": "Login succeeded",
"errorEmptyFields": "Please enter your username and password",
"errorInvalidCredentials": "Login failed, please check username and password"
},
"documentPanel": {
"clearDocuments": {
"button": "Clear",

View File

@@ -10,6 +10,18 @@
"switchToDark": "切换到暗色主题"
}
},
"login": {
"description": "请输入您的账号和密码登录系统",
"username": "用户名",
"usernamePlaceholder": "请输入用户名",
"password": "密码",
"passwordPlaceholder": "请输入密码",
"loginButton": "登录",
"loggingIn": "登录中...",
"successMessage": "登录成功",
"errorEmptyFields": "请输入您的用户名和密码",
"errorInvalidCredentials": "登录失败,请检查用户名和密码"
},
"documentPanel": {
"clearDocuments": {
"button": "清除",