From 7b19848cc19fa98e1a4482c5f0ea2b95b6bed93f Mon Sep 17 00:00:00 2001 From: pyphilia Date: Tue, 16 Aug 2022 11:14:33 +0200 Subject: [PATCH] feat: add item zip error translations --- src/constants/messages.ts | 5 +++++ src/langs/en/messages.json | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/constants/messages.ts b/src/constants/messages.ts index 24969016..bf542084 100644 --- a/src/constants/messages.ts +++ b/src/constants/messages.ts @@ -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; diff --git a/src/langs/en/messages.json b/src/langs/en/messages.json index 91380879..8759b64c 100644 --- a/src/langs/en/messages.json +++ b/src/langs/en/messages.json @@ -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" }