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: translate flag types #163

Merged
merged 1 commit into from
Jun 15, 2023
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
1 change: 1 addition & 0 deletions src/langs/ar/flag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/de/flag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
8 changes: 8 additions & 0 deletions src/langs/en/flag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"inappropriate-content": "Inappropriate Content",
"hate-speech": "Hate Speech",
"fraud-plagiarism": "Fraud / Plagiarism",
"spam": "Spam",
"targeted-harassment": "Targeted Harassment",
"false-information": "False Information"
}
8 changes: 8 additions & 0 deletions src/langs/fr/flag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"inappropriate-content": "Contenu Inapproprié",
"hate-speech": "Discours Haineux",
"fraud-plagiarism": "Fraude / Plagiat",
"spam": "Spam",
"targeted-harassment": "Harcèlement ciblé",
"false-information": "Fausse Information"
}
4 changes: 2 additions & 2 deletions src/langs/fr/library.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"COPY_LINK_BUTTON_TOOLTIP": "Copier le lien",
"GRAASP_LIBRARY": "Graasp Library",
"GRAASP_LIBRARY_DESCRIPTION": "Graasp Library est une plateforme de partage de ressources éducatives libres.",
"GRAASP_LIBRARY_DESCRIPTION": "Graasp Library est une plateforme de partage de ressources éducatives libres.",
"HOME_TITLE": "Découvrez des ressources libres pour l'éducation",
"GUEST": "Invité",
"SEARCH_RANGES_AUTHOR": "Auteur",
Expand All @@ -23,7 +23,7 @@
"HEADER_ALL_COLLECTIONS": "Toutes les Collections",
"HEADER_MY_LISTS": "Mes Listes",
"HOME_GRAASPER_COLLECTIONS_TITLE": "Selection Graasp",
"HOME_POPULAR_THIS_WEEK_COLLECTIONS_TITLE": "Populaires cette semaine",
"HOME_POPULAR_THIS_WEEK_COLLECTIONS_TITLE": "Populaires cette semaine",
"HOME_MOST_LIKED_COLLECTIONS_TITLE": "Les plus aimées",
"ALL_COLLECTIONS_OPEN_MENU": "Ouvrir le Menu",
"EMPTY_COLLECTION_MESSAGE": "Aucune collection disponible.",
Expand Down
2 changes: 1 addition & 1 deletion src/langs/fr/player.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"HIDE_PINNED_ITEMS_TOOLTIP": "Cacher les éléments épinglés",
"PINNED_ITEMS": "Éléments épinglés",
"LOAD_MORE": "Montrer plus",
"HIDDEN_WRAPPER_TOOLTIP": "Cet élément est caché, vous pouvez le voir car vous possédez un droit d'administration ou d'écriture, les utilisateurs avec droits de lecture ne peuvent pas voir cet élément"
"HIDDEN_WRAPPER_TOOLTIP": "Cet élément est caché, vous pouvez le voir car vous possédez un droit d'administration ou d'écriture, les utilisateurs avec droits de lecture ne peuvent pas voir cet élément"
}
10 changes: 10 additions & 0 deletions src/langs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ import mailFR from './fr/mail.json';
import mailDE from './de/mail.json';
import mailIT from './it/mail.json';
import mailAR from './ar/mail.json';
import flagEN from './en/flag.json';
import flagFR from './fr/flag.json';
import flagDE from './de/flag.json';
import flagIT from './it/flag.json';
import flagAR from './ar/flag.json';

// define namespaces
export const namespaces = {
Expand Down Expand Up @@ -104,6 +109,7 @@ const en = {
...permissionLevelEN,
...itemTypeEN,
...contextEN,
...flagEN,
},
[namespaces.library]: libraryEN,
[namespaces.mail]: mailEN,
Expand All @@ -124,6 +130,7 @@ const fr = {
...permissionLevelFR,
...itemTypeFR,
...contextFR,
...flagFR,
},
[namespaces.library]: libraryFR,
[namespaces.mail]: mailFR,
Expand All @@ -144,6 +151,7 @@ const de = {
...permissionLevelDE,
...itemTypeDE,
...contextDE,
...flagDE,
},
[namespaces.library]: libraryDE,
[namespaces.mail]: mailDE,
Expand All @@ -164,6 +172,7 @@ const it = {
...permissionLevelIT,
...itemTypeIT,
...contextIT,
...flagIT,
},
[namespaces.library]: libraryIT,
[namespaces.mail]: mailIT,
Expand All @@ -184,6 +193,7 @@ const ar = {
...permissionLevelAR,
...itemTypeAR,
...contextAR,
...flagAR,
},
[namespaces.library]: libraryAR,
[namespaces.mail]: mailAR,
Expand Down
1 change: 1 addition & 0 deletions src/langs/it/flag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}