mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +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',
|
||||
|
||||
Reference in New Issue
Block a user