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 membership request related translations #540

Merged
merged 4 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions src/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ export const SUCCESS_MESSAGES = {

PUT_ITEM_GEOLOCATION: 'PUT_ITEM_GEOLOCATION',
DELETE_ITEM_GEOLOCATION: 'DELETE_ITEM_GEOLOCATION',

REQUEST_MEMBERSHIP: 'REQUEST_MEMBERSHIP',
DELETE_MEMBERSHIP_REQUEST: 'DELETE_MEMBERSHIP_REQUEST',
ENROLL: 'ENROLL',
};

export const REQUEST_MESSAGES = {
Expand Down
1 change: 1 addition & 0 deletions src/langs/ar/accountTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/de/accountTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 5 additions & 0 deletions src/langs/en/accountTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"guest": "guest",
"individual": "member",
"group": "group"
}
5 changes: 4 additions & 1 deletion src/langs/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,8 @@
"ACCOUNT_NOT_FOUND": "An account was not found",
"CANNOT_CREATE_MEMBERSHIP_CAUSE_ITEM_LOGIN_SCHEMA_EXISTS": "You cannot request a membership because the targeted ressource allows pseudonimized users",
"CANNOT_MODIFY_GUEST_ITEM_MEMBERSHIP": "Cannot modify the permission of targeted account because it is a pseudonymized user",
"CANNOT_ENROLL_ITEM_WITHOUT_ITEM_LOGIN_SCHEMA": "Cannot enroll in the targeted item because it doesn't allow pseudonymized users"
"CANNOT_ENROLL_ITEM_WITHOUT_ITEM_LOGIN_SCHEMA": "Cannot enroll in this item because it doesn't allow pseudonymized users",
"REQUEST_MEMBERSHIP": "Membership requests has been sent successfully!",
"DELETE_MEMBERSHIP_REQUEST": "Membership request has been successfully deleted.",
"ENROLL": "You successfully enrolled to the item."
}
1 change: 1 addition & 0 deletions src/langs/es/accountTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 5 additions & 0 deletions src/langs/fr/accountTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"guest": "invité",
"individual": "membre",
"group": "groupe"
}
3 changes: 2 additions & 1 deletion src/langs/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,6 @@
"ACCOUNT_NOT_FOUND": "Aucun compte n'a été trouvé",
"CANNOT_CREATE_MEMBERSHIP_CAUSE_ITEM_LOGIN_SCHEMA_EXISTS": "Vous ne pouvez pas demander une adhésion car la ressource ciblée autorise les utilisateurs pseudonymisés",
"CANNOT_MODIFY_GUEST_ITEM_MEMBERSHIP": "Impossible de modifier l'autorisation du compte ciblé car il s'agit d'un utilisateur pseudonymisé",
"CANNOT_ENROLL_ITEM_WITHOUT_ITEM_LOGIN_SCHEMA": "Impossible de s'inscrire à l'élément ciblé car il n'autorise pas les utilisateurs pseudonymisés"
"CANNOT_ENROLL_ITEM_WITHOUT_ITEM_LOGIN_SCHEMA": "Impossible de s'inscrire à cet élément car il n'autorise pas les utilisateurs pseudonymisés",
"ENROLL": "Vous avez rejoint l'élément avec succès."
}
12 changes: 12 additions & 0 deletions src/langs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ import actionTypesDE from './de/actionTypes.json' with { type: 'json' };
import actionTypesIT from './it/actionTypes.json' with { type: 'json' };
import actionTypesAR from './ar/actionTypes.json' with { type: 'json' };
import actionTypesES from './es/actionTypes.json' with { type: 'json' };
import accountTypesEN from './en/accountTypes.json' with { type: 'json' };
import accountTypesFR from './fr/accountTypes.json' with { type: 'json' };
import accountTypesDE from './de/accountTypes.json' with { type: 'json' };
import accountTypesIT from './it/accountTypes.json' with { type: 'json' };
import accountTypesAR from './ar/accountTypes.json' with { type: 'json' };
import accountTypesES from './es/accountTypes.json' with { type: 'json' };

// define namespaces
export const namespaces = {
Expand Down Expand Up @@ -97,6 +103,7 @@ const en = {
...contextEN,
...flagEN,
...maxWidthEN,
...accountTypesEN,
},
[namespaces.messages]: messagesEN,
[namespaces.uppy]: uppyEN,
Expand All @@ -114,6 +121,7 @@ const fr = {
...contextFR,
...flagFR,
...maxWidthFR,
...accountTypesFR,
},
[namespaces.messages]: messagesFR,
[namespaces.uppy]: uppyFR,
Expand All @@ -131,6 +139,7 @@ const de = {
...contextDE,
...flagDE,
...maxWidthDE,
...accountTypesDE,
},
[namespaces.messages]: messagesDE,
[namespaces.uppy]: uppyDE,
Expand All @@ -148,6 +157,7 @@ const it = {
...contextIT,
...flagIT,
...maxWidthIT,
...accountTypesIT,
},
[namespaces.messages]: messagesIT,
[namespaces.uppy]: uppyIT,
Expand All @@ -165,6 +175,7 @@ const ar = {
...contextAR,
...flagAR,
...maxWidthAR,
...accountTypesAR,
},
[namespaces.messages]: messagesAR,
[namespaces.uppy]: uppyAR,
Expand All @@ -182,6 +193,7 @@ const es = {
...contextES,
...flagES,
...maxWidthES,
...accountTypesES,
},
[namespaces.messages]: messagesES,
[namespaces.uppy]: uppyES,
Expand Down
1 change: 1 addition & 0 deletions src/langs/it/accountTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}