mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 09:44:26 +08:00
support parameterized errors
This commit is contained in:
@@ -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