Skip to content

Commit

Permalink
feat: add recycle bin translations
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Aug 16, 2022
1 parent cb431ba commit 18926e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ export const FAILURE_MESSAGES = {
PREVENT_APP_DATA_FILE_UPDATE: 'PREVENT_APP_DATA_FILE_UPDATE',
PREVENT_APP_SETTING_FILE_UPDATE: 'PREVENT_APP_SETTING_FILE_UPDATE',
FILE_SERVICE_NOT_DEFINED: 'FILE_SERVICE_NOT_DEFINED',

// recycle bin
CANNOT_COPY_RECYCLED_ITEM: 'CANNOT_COPY_RECYCLED_ITEM',
CANNOT_MOVE_RECYCLED_ITEM: 'CANNOT_MOVE_RECYCLED_ITEM',
CANNOT_DELETE_RECYCLED_ITEM: 'CANNOT_DELETE_RECYCLED_ITEM',
CANNOT_GET_RECYCLED_ITEM: 'CANNOT_GET_RECYCLED_ITEM',
INVALID_ITEM_STATUS: 'INVALID_ITEM_STATUS',
};

export const DEFAULT_FAILURE_MESSAGE = FAILURE_MESSAGES.UNEXPECTED_ERROR;
Expand Down
8 changes: 7 additions & 1 deletion src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,11 @@
"APP_SETTING_NOT_FOUND": "No app setting was not found",
"PREVENT_APP_DATA_FILE_UPDATE": "File app data cannot be updated",
"PREVENT_APP_SETTING_FILE_UPDATE": "File app setting cannot be updated",
"FILE_SERVICE_NOT_DEFINED": "The file service or type is not defined"
"FILE_SERVICE_NOT_DEFINED": "The file service or type is not defined",

"CANNOT_COPY_RECYCLED_ITEM": "A recycled item cannot be copied",
"CANNOT_MOVE_RECYCLED_ITEM": "A recycled item cannot be moved",
"CANNOT_DELETE_RECYCLED_ITEM": "A recycled item cannot be deleted",
"CANNOT_GET_RECYCLED_ITEM": "A recycled item cannot be read",
"INVALID_ITEM_STATUS": "The item does not satisfy the requirements"
}

0 comments on commit 18926e4

Please sign in to comment.