Skip to content

Commit

Permalink
Added french and polish translations
Browse files Browse the repository at this point in the history
  • Loading branch information
apepper committed Oct 31, 2024
1 parent 4957f87 commit 96b5422
Show file tree
Hide file tree
Showing 12 changed files with 91 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Components/Attachment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ function getDownloadMessage(subject: string) {
switch (currentLanguage()) {
case 'de':
return `${subject} herunterladen`
case 'fr':
return `Télécharger ${subject}`
case 'pl':
return `Pobierz ${subject}`
default:
return `Download ${subject}`
}
Expand Down
4 changes: 4 additions & 0 deletions src/Components/Loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ function getMessage(): string {
switch (currentLanguage()) {
case 'de':
return 'Daten werden geladen…'
case 'fr':
return 'Chargement des données…'
case 'pl':
return 'Ładowanie danych…'
default:
return 'Loading data…'
}
Expand Down
25 changes: 25 additions & 0 deletions src/Objs/Product/ProductComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,29 @@ const LOCALIZERS = {
downloads: 'Downloads',
suitableAccessories: 'Suitable accessories',
},
fr: {
cartAddedMessage: '__product__ a été ajouté au panier.',
cartAddLabel: 'Ajouter au panier',
cartRemovedMessage: '__product__ a été retiré du panier.',
cartRemoveLabel: 'Retirer du panier',
cartLoginLabel: 'Se connecter',
cartUnavailableMessage:
'Veuillez vous connecter pour ajouter __product__ dans le panier.',
data: 'Données',
description: 'Description',
downloads: 'Téléchargements',
suitableAccessories: 'Accessoires appropriés',
},
pl: {
cartAddedMessage: '__product__ został dodany do koszyka.',
cartAddLabel: 'Dodaj do koszyka',
cartRemovedMessage: '__product__ został usunięty z koszyka.',
cartRemoveLabel: 'Usuń z koszyka',
cartLoginLabel: 'Zaloguj się',
cartUnavailableMessage: 'Zaloguj się, aby dodać __product__ do koszyka.',
data: 'Dane',
description: 'Opis',
downloads: 'Pobrania',
suitableAccessories: 'Odpowiednie akcesoria',
},
}
12 changes: 12 additions & 0 deletions src/Objs/ProductCategory/ProductCategoryComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,16 @@ const LOCALIZERS = {
items1: '1 item',
itemsMany: '__count__ items',
},
fr: {
headline: 'Catégorie de produit',
items0: 'Aucun article',
items1: '1 article',
itemsMany: '__count__ articles',
},
pl: {
headline: 'Kategoria produktu',
items0: 'Brak produktów',
items1: '1 produkt',
itemsMany: '__count__ produktów',
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ function getErrorMessage(): string {
switch (currentLanguage()) {
case 'de':
return 'Wir bedauern die Unannehmlichkeiten.'
case 'fr':
return 'Nous sommes désolés pour le dérangement.'
case 'pl':
return 'Przepraszamy za utrudnienia.'
default:
return 'We’re sorry for the inconvenience.'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ function getErrorMessage(): string {
switch (currentLanguage()) {
case 'de':
return 'Aktion fehlgeschlagen. Wir bedauern die Unannehmlichkeiten.'
case 'fr':
return 'L’opération a échoué. Nous sommes désolés pour le désagrément.'
case 'pl':
return 'Operacja nie powiodła się. Przepraszamy za utrudnienia.'
default:
return 'Operation failed. We’re sorry for the inconvenience.'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ function getErrorMessage(): string {
switch (currentLanguage()) {
case 'de':
return 'Wir bedauern die Unannehmlichkeiten.'
case 'fr':
return 'Nous sommes désolés pour le désagrément.'
case 'pl':
return 'Przepraszamy za utrudnienia.'
default:
return 'We’re sorry for the inconvenience.'
}
Expand Down
18 changes: 18 additions & 0 deletions src/Widgets/DataFormUploadWidget/DataFormUploadWidgetComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ function getDropMessage(multiple: boolean) {
switch (currentLanguage()) {
case 'de':
return 'Dateien auswählen oder hierher ziehen.'
case 'fr':
return 'Choisissez des fichiers ou faites-les glisser ici.'
case 'pl':
return 'Wybierz pliki lub przeciągnij je tutaj.'
default:
return 'Choose files or drag them here.'
}
Expand All @@ -134,6 +138,10 @@ function getDropMessage(multiple: boolean) {
switch (currentLanguage()) {
case 'de':
return 'Datei auswählen oder hierher ziehen.'
case 'fr':
return 'Choisissez un fichier ou faites-le glisser ici.'
case 'pl':
return 'Wybierz plik lub przeciągnij go tutaj.'
default:
return 'Choose a file or drag it here.'
}
Expand All @@ -146,6 +154,16 @@ function getTooLargeMessage() {
MAX_FILE_SIZE,
{ locale: 'de' },
)} hoch.`
case 'fr':
return `Un ou plusieurs fichiers sont trop volumineux. Veuillez télécharger des fichiers d'une taille maximale de ${prettyBytes(
MAX_FILE_SIZE,
{ locale: 'fr' },
)}.`
case 'pl':
return `Jeden lub kilka plików jest za duży. Proszę przesłać pliki o maksymalnym rozmiarze ${prettyBytes(
MAX_FILE_SIZE,
{ locale: 'pl' },
)}.`
default:
return `One or more files are too large. Please upload files up to ${prettyBytes(
MAX_FILE_SIZE,
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/DataIconWidget/DataIconWidgetComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ function localizeNotAvailable(): string {
switch (currentLanguage()) {
case 'de':
return 'k.A.'
case 'fr':
return 'N/A'
case 'pl':
return 'N/D'
default:
return 'N/A'
}
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/DataLabelWidget/DataLabelWidgetComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ function localizeNotAvailable(): string {
switch (currentLanguage()) {
case 'de':
return 'k.A.'
case 'fr':
return 'N/D'
case 'pl':
return 'bd.'
default:
return 'N/A'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ function localizeLogOutLabel(): string {
switch (currentLanguage()) {
case 'de':
return 'Abmelden'
case 'fr':
return 'Déconnexion'
case 'pl':
return 'Wyloguj się'
default:
return 'Log out'
}
Expand Down
4 changes: 4 additions & 0 deletions src/Widgets/TopNavigationWidget/SubComponents/SearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ function localizeSearchInputLabel(): string {
switch (currentLanguage()) {
case 'de':
return 'Suche'
case 'fr':
return 'Recherche'
case 'pl':
return 'Szukaj'
default:
return 'Search'
}
Expand Down

0 comments on commit 96b5422

Please sign in to comment.