Skip to content

Commit

Permalink
feat: add signin, signup message translations
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed May 12, 2022
1 parent eee1d43 commit 96fa035
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export const SUCCESS_MESSAGES = {
SHARE_ITEM: 'SHARE_ITEM',
UPLOAD_FILES: 'UPLOAD_FILES',
SIGN_OUT: 'SIGN_OUT',
SIGN_IN: 'SIGN_IN',
SIGN_UP: 'SIGN_UP',
SIGN_IN_WITH_PASSWORD: 'SIGN_IN_WITH_PASSWORD',
EDIT_MEMBER: 'EDIT_MEMBER',
COPY_MEMBER_ID_TO_CLIPBOARD: 'COPY_MEMBER_ID_TO_CLIPBOARD',
EDIT_ITEM_MEMBERSHIP: 'EDIT_ITEM_MEMBERSHIP',
Expand Down
5 changes: 5 additions & 0 deletions src/langs/en/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ export default {
[SUCCESS_MESSAGES.SHARE_ITEM]: 'The item(s) were successfully shared',
[SUCCESS_MESSAGES.UPLOAD_FILES]: 'The file(s) were successfully uploaded',
[SUCCESS_MESSAGES.SIGN_OUT]: 'You successfully signed out',
[SUCCESS_MESSAGES.SIGN_IN]:
'Your information are valid, you will receive an email to login',
[SUCCESS_MESSAGES.SIGN_IN_WITH_PASSWORD]: 'You successfully signed in',
[SUCCESS_MESSAGES.SIGN_UP]:
'You successfully signed up, you will receive an email to login',
[SUCCESS_MESSAGES.EDIT_MEMBER]: 'The user was updated successfully',
[SUCCESS_MESSAGES.COPY_MEMBER_ID_TO_CLIPBOARD]:
'The user ID is successfully copied',
Expand Down
6 changes: 6 additions & 0 deletions src/langs/fr/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ export default {
[SUCCESS_MESSAGES.UPLOAD_FILES]:
'Les fichiers ont été sauvegardés avec succès',
[SUCCESS_MESSAGES.SIGN_OUT]: 'Vous avez été déconnecté avec succès',
[SUCCESS_MESSAGES.SIGN_IN]:
'Vos informations ont été validées, vous allez recevoir un mail pour vous connecter',
[SUCCESS_MESSAGES.SIGN_IN_WITH_PASSWORD]:
'Vous avez été connecté avec succès',
[SUCCESS_MESSAGES.SIGN_UP]:
'Vous avez été enregistré avec succès, vous allez recevoir un mail pour vous connecter',
[SUCCESS_MESSAGES.EDIT_MEMBER]: "L'utilisateur a été modifié avec succès",
[SUCCESS_MESSAGES.COPY_MEMBER_ID_TO_CLIPBOARD]:
"L'ID utilisateur a été copié avec succès",
Expand Down

0 comments on commit 96fa035

Please sign in to comment.