Skip to content

Commit

Permalink
refactor: add more invitation translations
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Aug 6, 2024
1 parent 94d76a2 commit e75ca1c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@ export const FAILURE_MESSAGES = {
MEMBER_PROFILE_NOT_FOUND: 'MEMBER_PROFILE_NOT_FOUND',

NO_INVITATION_RECEIVED: 'NO_INVITATION_RECEIVED',
INVITATION_NOT_FOUND: 'INVITATION_NOT_FOUND',
INVITATION_CSV_MISSING_EMAIL_COLUMN: 'INVITATION_CSV_MISSING_EMAIL_COLUMN',
INVITATION_CSV_MISSING_GROUP_COLUMN: 'INVITATION_CSV_MISSING_GROUP_COLUMN',
INVITATION_CSV_MISSING_EMAIL_IN_ROW: 'INVITATION_CSV_MISSING_EMAIL_IN_ROW',
INVITATION_CSV_MISSING_GROUP_IN_ROW: 'INVITATION_CSV_MISSING_GROUP_IN_ROW',
INVITATION_CSV_NO_FILE_PROVIDED: 'INVITATION_CSV_NO_FILE_PROVIDED',
INVITATION_CSV_NO_DATA_IN_FILE: 'INVITATION_CSV_NO_DATA_IN_FILE',
INVITATION_CSV_TEMPLATE_ITEM_DOES_NOT_EXIST:
'INVITATION_CSV_TEMPLATE_ITEM_DOES_NOT_EXIST',
INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM:
'INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM',
};

export const DEFAULT_FAILURE_MESSAGE = FAILURE_MESSAGES.UNEXPECTED_ERROR;
Expand Down
11 changes: 10 additions & 1 deletion src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,14 @@
"MEMBER_PROFILE_NOT_FOUND": "Member profile not found",
"INSUFFICIENT_PERMISSION": "Account has insufficient permission to perform this action",
"NOT_VALIDATED_MEMBER": "Member has not validated their account email",
"NO_INVITATION_RECEIVED": "No invitation received"
"NO_INVITATION_RECEIVED": "No invitation received",
"INVITATION_NOT_FOUND": "Invitation not found",
"INVITATION_CSV_MISSING_EMAIL_COLUMN": "The required column 'email' was not provided",
"INVITATION_CSV_MISSING_GROUP_COLUMN": "The required column 'group_name' was not provided",
"INVITATION_CSV_MISSING_EMAIL_IN_ROW": "A row is missing the required 'email' value",
"INVITATION_CSV_MISSING_GROUP_IN_ROW": "A row is missing the required 'group_name' value",
"INVITATION_CSV_NO_FILE_PROVIDED": "No file was provided. Please provide a file for creating bulk invitations",
"INVITATION_CSV_NO_DATA_IN_FILE": "No data was found in the file. Please send a file with valid data.",
"INVITATION_CSV_TEMPLATE_ITEM_DOES_NOT_EXIST": "The template item does not exist.",
"INVITATION_CANNOT_CREATE_STRUCTURE_IN_NON_FOLDER_ITEM": "Provided item is not a folder. A structure cannot be created inside an item that is not a folder."
}

0 comments on commit e75ca1c

Please sign in to comment.