Skip to content

Commit

Permalink
feat: add library tree modal translations (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Chau authored Nov 8, 2022
1 parent 9768a6b commit 73ec2f6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const MY_APP_NAME = {
};
```

- Create a file for each supported language in `src/langs/language_initials/your_app_name.ts` with the following content:
- Create a file for each supported language in `src/langs/<language-initials>/your_app_name.ts` with the following content:
```ts
import { MY_APP_NAME } from "../../constants/your_app_name";

Expand Down
2 changes: 2 additions & 0 deletions src/constants/library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ export const LIBRARY = {
SIGN_IN_MODAL_CLOSE_BUTTON_ARIA_LABEL:
'SIGN_IN_MODAL_CLOSE_BUTTON_ARIA_LABEL',
VIEW_BUTTON_TOOLTIP: 'VIEW_BUTTON_TOOLTIP',
OWN_ITEMS_LABEL: 'OWN_ITEMS_LABEL',
SHARED_ITEMS_LABEL: 'SHARED_ITEMS_LABEL',
};
4 changes: 3 additions & 1 deletion src/langs/de/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,7 @@
"COLLECTION_EMPTY_DESCRIPTION_TEXT": "Dieses Element hat keine Beschreibung.",
"COLLECTION_INFO_BUTTON": "Information",
"SIGN_IN_MODAL_CLOSE_BUTTON_ARIA_LABEL": "Anmelden Modal schliessen",
"VIEW_BUTTON_TOOLTIP": "Element ansehen"
"VIEW_BUTTON_TOOLTIP": "Element ansehen",
"SHARED_ITEMS_LABEL": "Geteilte Elemente",
"OWN_ITEMS_LABEL": "Meine Gegenstände"
}
4 changes: 3 additions & 1 deletion src/langs/en/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,7 @@
"COLLECTION_EMPTY_DESCRIPTION_TEXT": "This item has no description.",
"COLLECTION_INFO_BUTTON": "Information",
"SIGN_IN_MODAL_CLOSE_BUTTON_ARIA_LABEL": "Close Sign In Modal",
"VIEW_BUTTON_TOOLTIP": "View item"
"VIEW_BUTTON_TOOLTIP": "View item",
"SHARED_ITEMS_LABEL": "Shared Items",
"OWN_ITEMS_LABEL": "Owned Items"
}
6 changes: 4 additions & 2 deletions src/langs/fr/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"COLLECTION_ITEMS_EMPTY_MESSAGE": "Cette collection est vide.",
"COLLECTION_ITEMS_TOOLTIP_MESSAGE": "Ce sont les éléments de cette collection.",
"SIGN_IN_MODAL_SIGN_UP_BUTTON": "Créer un compte",
"COPY_BUTTON_MODAL_TITLE": "Copier un Elément",
"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",
Expand All @@ -27,5 +27,7 @@
"SEARCH_RANGE_LABEL": "Champ de recherche",
"SEARCH_RANGES_ALL": "Tous",
"SEARCH_RANGES_TITLE": "Titre",
"SEARCH_RANGES_TAGS": "Tag"
"SEARCH_RANGES_TAGS": "Tag",
"SHARED_ITEMS_LABEL": "Éléments Partagés",
"OWN_ITEMS_LABEL": "Mes Éléments"
}

0 comments on commit 73ec2f6

Please sign in to comment.