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

fix(library): add home and filter translations #190

Merged
merged 6 commits into from
Jul 28, 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
10 changes: 10 additions & 0 deletions src/constants/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export const LIBRARY = {
'COLLECTION_ITEMS_EMPTY_FOLDER_MESSAGE',
COLLECTION_ITEMS_TITLE: 'COLLECTION_ITEMS_TITLE',
COLLECTION_ITEMS_TOOLTIP_MESSAGE: 'COLLECTION_ITEMS_TOOLTIP_MESSAGE',
COLLECTION_CARD_TAG_NEW: 'COLLECTION_CARD_TAG_NEW',
COLLECTION_CARD_TAG_UPDATED: 'COLLECTION_CARD_TAG_UPDATED',
SIGN_IN_MODAL_SIGN_IN_BUTTON: 'SIGN_IN_MODAL_SIGN_IN_BUTTON',
SIGN_IN_MODAL_SIGN_UP_BUTTON: 'SIGN_IN_MODAL_SIGN_UP_BUTTON',
COPY_BUTTON_MODAL_TITLE: 'COPY_BUTTON_MODAL_TITLE',
Expand Down Expand Up @@ -41,6 +43,7 @@ export const LIBRARY = {
SEARCH_BUTTON_ARIA_LABEL: 'SEARCH_BUTTON_ARIA_LABEL',
SEARCH_ARIA_LABEL: 'SEARCH_ARIA_LABEL',
SEARCH_PLACEHOLDER: 'SEARCH_PLACEHOLDER',
SEARCH_RESULTS_FOR_TEXT: "SEARCH_RESULTS_FOR_TEXT",
COLLECTION_PLAYER_BUTTON: 'COLLECTION_PLAYER_BUTTON',
ERROR_TITLE: 'ERROR_TITLE',
ERROR_RETURN_TO_HOME: 'ERROR_RETURN_TO_HOME',
Expand All @@ -56,11 +59,15 @@ export const LIBRARY = {
PROFILE_BUTTON: 'PROFILE_BUTTON',
COLLECTIONS_COUNT_MESSAGE: 'COLLECTIONS_COUNT_MESSAGE',
HOME_TITLE: 'HOME_TITLE',
HOME_SUBTITLE: 'HOME_SUBTITLE',
HOME_POPULAR_SEARCHES_TITLE: 'HOME_POPULAR_SEARCHES_TITLE',
HOME_MORE_COLLECTIONS_TITLE: 'HOME_MORE_COLLECTIONS_TITLE',
HOME_GRAASPER_COLLECTIONS_TITLE: 'HOME_GRAASPER_COLLECTIONS_TITLE',
HOME_POPULAR_THIS_WEEK_COLLECTIONS_TITLE:
'HOME_POPULAR_THIS_WEEK_COLLECTIONS_TITLE',
HOME_RECENT_COLLECTIONS_TITLE: 'HOME_RECENT_COLLECTIONS_TITLE',
HOME_MOST_LIKED_COLLECTIONS_TITLE: 'HOME_MOST_LIKED_COLLECTIONS_TITLE',
HOME_VIEW_MORE_IN_LIBRARY_BUTTON: 'HOME_VIEW_MORE_IN_LIBRARY_BUTTON',
MY_LISTS_MY_FAVORITES_TAB: 'MY_LISTS_MY_FAVORITES_TAB',
MY_LISTS_MY_PUBLISHMENTS_TAB: 'MY_LISTS_MY_PUBLISHMENTS_TAB',
MY_LISTS_MY_LIKES_TAB: 'MY_LISTS_MY_LIKES_TAB',
Expand Down Expand Up @@ -100,4 +107,7 @@ export const LIBRARY = {
SUMMARY_ACTIONS_COPY: 'SUMMARY_ACTIONS_COPY',
SUMMARY_ACTIONS_EMBED: 'SUMMARY_ACTIONS_EMBED',
SUMMARY_CONTENT_TITLE: 'SUMMARY_CONTENT_TITLE',
FILTER_DROPDOWN_NO_FILTER: "FILTER_DROPDOWN_NO_FILTER",
FILTER_DROPDOWN_CLEAR_FILTERS: "FILTER_DROPDOWN_CLEAR_FILTERS",
FILTER_DROPDOWN_NO_CATEGORIES_AVAILABLE: "FILTER_DROPDOWN_NO_CATEGORIES_AVAILABLE",
};
14 changes: 12 additions & 2 deletions src/langs/en/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"COLLECTION_ITEMS_EMPTY_FOLDER_MESSAGE": "This folder is empty.",
"COLLECTION_ITEMS_TITLE": "Items",
"COLLECTION_ITEMS_TOOLTIP_MESSAGE": "These are the items in this collection.",
"COLLECTION_CARD_TAG_NEW": "New",
"COLLECTION_CARD_TAG_UPDATED": "Updated",
"SIGN_IN_MODAL_SIGN_IN_BUTTON": "Sign In",
"SIGN_IN_MODAL_SIGN_UP_BUTTON": "Create an Account",
"COPY_BUTTON_MODAL_TITLE": "Copy Item",
Expand Down Expand Up @@ -39,6 +41,7 @@
"SEARCH_BUTTON_ARIA_LABEL": "search",
"SEARCH_ARIA_LABEL": "Search collections",
"SEARCH_PLACEHOLDER": "Search collections…",
"SEARCH_RESULTS_FOR_TEXT": "Search results for: {{search}}",
"COLLECTION_PLAYER_BUTTON": "View item in player",
"ERROR_TITLE": "Error",
"ERROR_RETURN_TO_HOME": "Return to Home",
Expand All @@ -54,11 +57,15 @@
"PROFILE_BUTTON": "Account",
"COLLECTIONS_COUNT_MESSAGE_one": "{{count}} collection available",
"COLLECTIONS_COUNT_MESSAGE_other": "{{count}} collections available",
"HOME_TITLE": "Browse Open Educational Resources",
"HOME_TITLE": "Graasp Library",
"HOME_SUBTITLE": "Browse and Discover Open Educational Resources",
"HOME_POPULAR_SEARCHES_TITLE": "Popular Searches",
"HOME_MORE_COLLECTIONS_TITLE": "Discover",
"HOME_GRAASPER_COLLECTIONS_TITLE": "Graasp Selection",
"HOME_POPULAR_THIS_WEEK_COLLECTIONS_TITLE": "Popular this Week",
"HOME_RECENT_COLLECTIONS_TITLE": "Recently created",
"HOME_MOST_LIKED_COLLECTIONS_TITLE": "Most liked",
"HOME_VIEW_MORE_IN_LIBRARY_BUTTON": "View more in the Library",
"MY_LISTS_MY_FAVORITES_TAB": "My Favorites",
"MY_LISTS_MY_PUBLISHMENTS_TAB": "My Publishments",
"MY_LISTS_MY_LIKES_TAB": "My Likes",
Expand Down Expand Up @@ -99,5 +106,8 @@
"SUMMARY_ACTIONS_PREVIEW_CONTENT": "Preview",
"SUMMARY_ACTIONS_DOWNLOAD": "Download",
"SUMMARY_ACTIONS_COPY": "Copy",
"SUMMARY_ACTIONS_EMBED": "Embed"
"SUMMARY_ACTIONS_EMBED": "Embed",
"FILTER_DROPDOWN_NO_FILTER": "No filter…",
"FILTER_DROPDOWN_CLEAR_FILTERS": "Clear",
"FILTER_DROPDOWN_NO_CATEGORIES_AVAILABLE": "No categories available"
}
18 changes: 15 additions & 3 deletions src/langs/fr/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,37 @@
"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.",
"HOME_TITLE": "Découvrez des ressources libres pour l'éducation",
"GUEST": "Invité",
"SEARCH_RANGES_AUTHOR": "Auteur",
"COLLECTION_ITEMS_EMPTY_MESSAGE": "Cette collection est vide.",
"COLLECTION_ITEMS_EMPTY_FOLDER_MESSAGE": "Ce dossier est vide.",
"COLLECTION_ITEMS_TOOLTIP_MESSAGE": "Ce sont les éléments de cette collection.",
"COLLECTION_CARD_TAG_NEW": "Nouveau",
"COLLECTION_CARD_TAG_UPDATED": "Mis à jour",
"SIGN_IN_MODAL_SIGN_UP_BUTTON": "Créer un compte",
"COPY_BUTTON_MODAL_TITLE": "Copier un Élément",
"SIGN_IN_MODAL_TITLE": "Connexion Nécessaire",
"SIGN_IN_MODAL_CONTENT": "Pour continuer, vous devez vous connecter à Graasp.",
"TREE_MODAL_CANCEL_BUTTON": "Annuler",
"TREE_MODAL_CONFIRM_BUTTON": "Confirmer",
"SEARCH_PLACEHOLDER": "Rechercher dans les collections…",
"COPY_BUTTON_TOOLTIP": "Copier",
"DOWNLOAD_BUTTON_TOOLTIP": "Télécharger",
"COPY_BUTTON_MODAL_DESCRIPTION": "Sélectionnez un dossier dans la liste ci-dessous",
"COMMENT_NO_CONTENT_MESSAGE": "Le commentaire a été effacé.",
"UNEXPECTED_ERROR_MESSAGE": "Une erreur s'est produite",
"ALL_COLLECTIONS_RESET_ALL_BUTTON": "Toutes les Collections",
"ALL_COLLECTIONS_TITLE": "Toutes les Collections",
"HEADER_ALL_COLLECTIONS": "Toutes les Collections",
"HEADER_MY_LISTS": "Mes Listes",
"HOME_TITLE": "Bibliothèque Graasp",
"HOME_SUBTITLE": "Explorez et découvrez des ressources libres pour l'éducation",
"HOME_POPULAR_SEARCHES_TITLE": "Recherches populaires",
"HOME_GRAASPER_COLLECTIONS_TITLE": "Selection Graasp",
"HOME_POPULAR_THIS_WEEK_COLLECTIONS_TITLE": "Populaires cette semaine",
"HOME_MOST_LIKED_COLLECTIONS_TITLE": "Les plus aimées",
"HOME_RECENT_COLLECTIONS_TITLE": "Récemment créées",
"HOME_MOST_LIKED_COLLECTIONS_TITLE": "Aimées par la communauté",
"HOME_VIEW_MORE_IN_LIBRARY_BUTTON": "Voir plus dans la Bibliothèque",
"ALL_COLLECTIONS_OPEN_MENU": "Ouvrir le Menu",
"EMPTY_COLLECTION_MESSAGE": "Aucune collection disponible.",
"COLLECTION_TAGS_TITLE": "Tags",
Expand All @@ -35,6 +43,7 @@
"SEARCH_RANGES_ALL": "Tous",
"SEARCH_RANGES_TITLE": "Titre",
"SEARCH_RANGES_TAGS": "Tag",
"SEARCH_RESULTS_FOR_TEXT": "Résultats de recherche pour: {{search}}",
"SHARED_ITEMS_LABEL": "Éléments Partagés",
"OWN_ITEMS_LABEL": "Mes Éléments",
"COLLECTION_EMPTY_DESCRIPTION_TEXT": "Cet élément n'a pas de description.",
Expand All @@ -59,5 +68,8 @@
"SUMMARY_ACTIONS_PREVIEW_CONTENT": "Aperçu",
"SUMMARY_ACTIONS_DOWNLOAD": "Télécharger",
"SUMMARY_ACTIONS_COPY": "Copier",
"SUMMARY_ACTIONS_EMBED": "Intégrer"
"SUMMARY_ACTIONS_EMBED": "Intégrer",
"FILTER_DROPDOWN_NO_FILTER": "Pas de filtres…",
"FILTER_DROPDOWN_CLEAR_FILTERS": "Réinitialiser",
"FILTER_DROPDOWN_NO_CATEGORIES_AVAILABLE": "Pas de catégories disponibles"
}