Skip to content

Commit

Permalink
feat: add H5P translations (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Chau authored Jul 1, 2022
1 parent c84c5bb commit f604235
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const SUCCESS_MESSAGES = {
UPLOAD_ITEM_THUMBNAIL: 'UPLOAD_ITEM_THUMBNAIL',
UPLOAD_AVATAR: 'UPLOAD_AVATAR',
IMPORT_ZIP: 'IMPORT_ZIP',
IMPORT_H5P: 'IMPORT_H5P',
POST_ITEM_CATEGORY: 'POST_ITEM_CATEGORY',
DELETE_ITEM_CATEGORY: 'DELETE_ITEM_CATEGORY',
PUT_ITEM_LOGIN: 'PUT_ITEM_LOGIN',
Expand All @@ -86,5 +87,6 @@ export const SUCCESS_MESSAGES = {

// todo: might not be used anymore if we add a progress bar
export const REQUEST_MESSAGES = {
IMPORT_ZIP: 'The ZIP is being processed. Please wait a moment.',
IMPORT_ZIP: 'The ZIP file is being processed. Please wait a moment.',
IMPORT_H5P: 'The H5P file is being processed. Please wait a moment.',
};
1 change: 1 addition & 0 deletions src/langs/en/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ export default {
'The thumbnail was successfully uploaded',
[SUCCESS_MESSAGES.UPLOAD_AVATAR]: 'The avatar was successfully uploaded',
[SUCCESS_MESSAGES.IMPORT_ZIP]: 'The ZIP archive was successfully imported',
[SUCCESS_MESSAGES.IMPORT_H5P]: 'The H5P package was successfully imported',
[SUCCESS_MESSAGES.DELETE_MEMBER]: 'The account was successfully deleted',
};
1 change: 1 addition & 0 deletions src/langs/fr/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,6 @@ export default {
'La miniature a été sauvegardé avec succès',
[SUCCESS_MESSAGES.UPLOAD_AVATAR]: "L'avatar a été sauvegardé avec succès",
[SUCCESS_MESSAGES.IMPORT_ZIP]: "L'archive ZIP a été importé avec succès",
[SUCCESS_MESSAGES.IMPORT_H5P]: "Le paquet H5P a été importé avec succès",
[SUCCESS_MESSAGES.DELETE_MEMBER]: 'Le compte a été supprimé avec succès',
};

0 comments on commit f604235

Please sign in to comment.