Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add clipboard messages #110

Merged
merged 2 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export const FAILURE_MESSAGES = {
CANNOT_DELETE_RECYCLED_ITEM: 'CANNOT_DELETE_RECYCLED_ITEM',
CANNOT_GET_RECYCLED_ITEM: 'CANNOT_GET_RECYCLED_ITEM',
INVALID_ITEM_STATUS: 'INVALID_ITEM_STATUS',

// sharing item
COPY_LINK_TO_CLIPBOARD_ERROR: 'COPY_LINK_TO_CLIPBOARD_ERROR',
};

export const DEFAULT_FAILURE_MESSAGE = FAILURE_MESSAGES.UNEXPECTED_ERROR;
Expand Down Expand Up @@ -112,6 +115,9 @@ export const SUCCESS_MESSAGES = {
DELETE_ITEM_TAG: 'DELETE_ITEM_TAG',
DELETE_MEMBER: 'DELETE_MEMBER',
UPDATE_PASSWORD: 'UPDATE_PASSWORD',

// sharing item
COPY_LINK_TO_CLIPBOARD: 'COPY_LINK_TO_CLIPBOARD',
};

// todo: might not be used anymore if we add a progress bar
Expand Down
5 changes: 4 additions & 1 deletion src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@
"CANNOT_MOVE_RECYCLED_ITEM": "A trashed item cannot be moved",
"CANNOT_DELETE_RECYCLED_ITEM": "A trashed item cannot be deleted",
"CANNOT_GET_RECYCLED_ITEM": "A trashed item cannot be read",
"INVALID_ITEM_STATUS": "The item does not satisfy the requirements"
"INVALID_ITEM_STATUS": "The item does not satisfy the requirements",

"COPY_LINK_TO_CLIPBOARD_ERROR": "There was an error copying the link to the clipboard",
"COPY_LINK_TO_CLIPBOARD": "Link copied to clipboard"
}
5 changes: 4 additions & 1 deletion src/langs/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@
"CANNOT_MOVE_RECYCLED_ITEM": "Un élément supprimé ne peut pas être déplacé",
"CANNOT_DELETE_RECYCLED_ITEM": "Un élément supprimé ne peut pas être supprimé",
"CANNOT_GET_RECYCLED_ITEM": "Un élément supprimé ne peut pas être lu",
"INVALID_ITEM_STATUS": "L'élément ne satisfait pas les contraintes"
"INVALID_ITEM_STATUS": "L'élément ne satisfait pas les contraintes",

"COPY_LINK_TO_CLIPBOARD_ERROR": "Impossible de copier le lien dans le press-papier",
spaenleh marked this conversation as resolved.
Show resolved Hide resolved
"COPY_LINK_TO_CLIPBOARD": "Lien copié dans le press-papier"
}