code refactor

This commit is contained in:
MaysWind
2020-10-20 22:46:24 +08:00
parent 32d3972ce9
commit be8bd6b17b
20 changed files with 123 additions and 115 deletions
+37
View File
@@ -0,0 +1,37 @@
export default {
'global': {
'app': {
'title': 'lab account book'
}
},
'error': {
'user id is invalid': 'User id is invalid',
'username is empty': 'Username is empty',
'email is empty': 'Email is empty',
'password is empty': 'Password is empty',
'user not found': 'User not found',
'password is wrong': 'Password is wrong',
'username already exists': 'Username already exists',
'email already exists': 'Email already exists',
'login name is invalid': 'Login name is invalid',
'login name or password is invalid': 'Login name or password is invalid',
'login name or password is wrong': 'Login name or password is wrong'
},
'Home': 'Home',
'Journals': 'Journals',
'Accounts': 'Accounts',
'Charts': 'Charts',
'Settings': 'Settings',
'Back': 'Back',
'Username': 'Username',
'Username or Email': 'Username or Email',
'Password': 'Password',
'Log In': 'Log In',
'Don\'t have an account?': 'Don\'t have an account?',
'Create an account': 'Create an account',
'Forget Password?': 'Forget Password?',
'Please input username': 'Please input username',
'Please input password': 'Please input password',
'Unable to login': 'Unable to login',
'Logout': 'Logout'
};
+18
View File
@@ -0,0 +1,18 @@
import en from './en.js'
import zhHans from './zh_Hans.js'
export const defaultLanguage = 'en';
export const allLanguages = {
'en': {
name: 'English',
displayName: 'English',
content: en
},
'zh-Hans': {
name: 'Simplified Chinese',
displayName: '简体中文',
aliases: ['zh-CHS', 'zh-CN', 'zh-SG'],
content: zhHans
}
};
+37
View File
@@ -0,0 +1,37 @@
export default {
'global': {
'app': {
'title': 'lab 轻记账'
}
},
'error': {
'user id is invalid': '用户ID无效',
'username is empty': '用户名为空',
'email is empty': '电子邮箱为空',
'password is empty': '密码为空',
'user not found': '找不到该用户',
'password is wrong': '密码错误',
'username already exists': '用户名已经存在',
'email already exists': '邮箱已经存在',
'login name is invalid': '登录名无效',
'login name or password is invalid': '登录名或密码无效',
'login name or password is wrong': '登录名或密码错误'
},
'Home': '首页',
'Journals': '流水',
'Accounts': '账户',
'Charts': '图表',
'Settings': '设置',
'Back': '返回',
'Username': '用户名',
'Username or Email': '用户名或注册邮箱',
'Password': '密码',
'Log In': '登录',
'Don\'t have an account?': '还没有账号?',
'Create an account': '创建新账号',
'Forget Password?': '找回密码?',
'Please input username': '请输入用户名',
'Please input password': '请输入密码',
'Unable to login': '无法登录',
'Logout': '退出登录'
};