Skip to content

Commit

Permalink
feat: add item zip error translations
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Aug 16, 2022
1 parent bdfce69 commit 7b19848
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ export const FAILURE_MESSAGES = {
S3_FILE_NOT_FOUND: 'S3_FILE_NOT_FOUND',
INVALID_PASSWORD: 'INVALID_PASSWORD',
EMPTY_CURRENT_PASSWORD: 'EMPTY_CURRENT_PASSWORD',

// zip
INVALID_ARCHIVE_FILE: 'INVALID_ARCHIVE_FILE',
INVALID_FILE_ITEM: 'INVALID_FILE_ITEM',
UNEXPECTED_EXPORT_ERROR: 'UNEXPECTED_EXPORT_ERROR',
};

export const DEFAULT_FAILURE_MESSAGE = FAILURE_MESSAGES.UNEXPECTED_ERROR;
Expand Down
6 changes: 5 additions & 1 deletion src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,9 @@
"IMPORT_ZIP": "The ZIP archive was successfully imported",
"IMPORT_H5P": "The H5P package was successfully imported",
"DELETE_MEMBER": "The account was successfully deleted",
"UPDATE_PASSWORD": "The password was updated successfully"
"UPDATE_PASSWORD": "The password was updated successfully",

"INVALID_ARCHIVE_FILE": "File is not a zip archive",
"INVALID_FILE_ITEM": "File's properties are invalid",
"UNEXPECTED_EXPORT_ERROR": "Error during exporting zip"
}

0 comments on commit 7b19848

Please sign in to comment.