mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed error translation
This commit is contained in:
parent
455c7ad90d
commit
a7d890aeec
5 changed files with 46 additions and 11 deletions
|
@ -42,6 +42,7 @@ export const ERRORS = {
|
|||
CANT_RESTORE_COMMENT: 'CantRestoreComment',
|
||||
MESSAGE_NOT_FOUND: 'MessageNotFound',
|
||||
COMMENT_TOO_LONG: 'CommentTooLong',
|
||||
NETWORK_ERROR: 'Network Error',
|
||||
};
|
||||
|
||||
export const ERROR_LITERAL = {
|
||||
|
@ -89,4 +90,5 @@ export const ERROR_LITERAL = {
|
|||
[ERRORS.CANT_RESTORE_COMMENT]: 'Не удалось восстановить комментарий',
|
||||
[ERRORS.MESSAGE_NOT_FOUND]: 'Сообщение не найдено',
|
||||
[ERRORS.COMMENT_TOO_LONG]: 'Комментарий слишком длинный',
|
||||
[ERRORS.NETWORK_ERROR]: 'Подключение не удалось',
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue