1
0
Fork 0
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:
Fedor Katurov 2021-03-05 11:32:50 +07:00
parent 455c7ad90d
commit a7d890aeec
5 changed files with 46 additions and 11 deletions

View file

@ -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]: 'Подключение не удалось',
};