mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
support parameterized errors
This commit is contained in:
@@ -6,6 +6,9 @@ export default {
|
||||
},
|
||||
'error': {
|
||||
'system error': 'System Error',
|
||||
'incomplete or incorrect submission': 'Incomplete or incorrect submission',
|
||||
'operation failed': 'Operation failed',
|
||||
'nothing will be updated': 'Nothing will be updated',
|
||||
'unauthorized access': 'Unauthorized access',
|
||||
'token is expired': 'Token is expired',
|
||||
'token is invalid': 'Token is invalid',
|
||||
@@ -32,6 +35,22 @@ export default {
|
||||
'two factor has already been enabled': 'Two factor has already been enabled',
|
||||
'two factor backup code does not exist': 'Two factor backup code does not exist',
|
||||
},
|
||||
'parameter': {
|
||||
'username': 'Username',
|
||||
'password': 'Password',
|
||||
'email': 'Email',
|
||||
'nickname': 'Nickname',
|
||||
},
|
||||
'parameterizedError': {
|
||||
'parameter invalid': '{parameter} is invalid',
|
||||
'parameter required': '{parameter} is required',
|
||||
'parameter too long': '{parameter} must be at most {length} characters',
|
||||
'parameter too short': '{parameter} must be at least {length} characters',
|
||||
'parameter length not equal': '{parameter} must be {length} characters',
|
||||
'parameter cannot be blank': '{parameter} cannot be blank',
|
||||
'parameter invalid username format': '{parameter} is invalid format',
|
||||
'parameter invalid email format': '{parameter} is invalid format',
|
||||
},
|
||||
'OK': 'OK',
|
||||
'Cancel': 'Cancel',
|
||||
'Done': 'Done',
|
||||
|
||||
@@ -6,6 +6,9 @@ export default {
|
||||
},
|
||||
'error': {
|
||||
'system error': '系统错误',
|
||||
'incomplete or incorrect submission': '提交不完整或不正确',
|
||||
'operation failed': '操作失败',
|
||||
'nothing will be updated': '没有内容更新',
|
||||
'unauthorized access': '未授权的登录',
|
||||
'token is expired': '认证令牌已过期',
|
||||
'token is invalid': '认证令牌无效',
|
||||
@@ -32,6 +35,22 @@ export default {
|
||||
'two factor has already been enabled': '两步验证已经启用',
|
||||
'two factor backup code does not exist': '两步验证备用码不存在',
|
||||
},
|
||||
'parameter': {
|
||||
'username': '用户名',
|
||||
'password': '密码',
|
||||
'email': '电子邮箱',
|
||||
'nickname': '昵称',
|
||||
},
|
||||
'parameterizedError': {
|
||||
'parameter invalid': '{parameter}无效',
|
||||
'parameter required': '{parameter}为必填项',
|
||||
'parameter too long': '{parameter}必须小于{length}个字符',
|
||||
'parameter too short': '{parameter}必须大于{length}个字符',
|
||||
'parameter length not equal': '{parameter}必须等于{length}个字符',
|
||||
'parameter cannot be blank': '{parameter}不能为空',
|
||||
'parameter invalid username format': '{parameter}格式错误',
|
||||
'parameter invalid email format': '{parameter}格式错误',
|
||||
},
|
||||
'OK': '确定',
|
||||
'Cancel': '取消',
|
||||
'Done': '完成',
|
||||
|
||||
Reference in New Issue
Block a user