Skip to content

Commit

Permalink
fix: wrong/missing french translation (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanddd authored Jun 22, 2022
1 parent a004135 commit ff60fe9
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/brave-beans-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sajari/react-search-ui': patch
---

Fix wrong/missing French translation
3 changes: 3 additions & 0 deletions packages/search-ui/src/i18n/locale/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const de: Locale = {
generic: 'Etwas ist schief gelaufen. Bitte überprüfen Sie noch einmal.',
},
filter: {
label: 'Filtern',
all: 'Alle',
rangeOver: 'Über {{value}}',
rangeUnder: 'Unter {{value}}',
Expand All @@ -31,6 +32,8 @@ const de: Locale = {
show: 'Filter anzeigen',
hide: 'Filter ausblenden',
toggleFilters: 'Filter umschalten',
clear: 'Klar',
apply: 'Anwenden',
},
input: {
placeholder: 'Suche',
Expand Down
3 changes: 3 additions & 0 deletions packages/search-ui/src/i18n/locale/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const en: Locale = {
generic: 'Something went wrong. Please try again.',
},
filter: {
label: 'Filters',
all: 'All',
rangeOver: 'Over {{value}}',
rangeUnder: 'Under {{value}}',
Expand All @@ -31,6 +32,8 @@ const en: Locale = {
show: 'Show filters',
hide: 'Hide filters',
toggleFilters: 'Toggle Filters',
clear: 'Clear',
apply: 'Apply',
},
input: {
placeholder: 'Search',
Expand Down
3 changes: 3 additions & 0 deletions packages/search-ui/src/i18n/locale/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const es: Locale = {
generic: 'Algo salió mal. Por favor revise de nuevo.',
},
filter: {
label: 'Filtros',
all: 'Todos',
rangeOver: 'Sobre {{value}}',
rangeUnder: 'Debajo {{value}}',
Expand All @@ -31,6 +32,8 @@ const es: Locale = {
show: 'Mostrar filtros',
hide: 'Ocultar filtros',
toggleFilters: 'Alternar filtros',
clear: 'Claro',
apply: 'Aplicar',
},
input: {
placeholder: 'Búsqueda',
Expand Down
5 changes: 4 additions & 1 deletion packages/search-ui/src/i18n/locale/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@ const fr: Locale = {
generic: 'Une erreur est survenue. Veuillez réessayer ultérieurement. Merci.',
},
filter: {
label: 'Filtres',
all: 'Tout',
rangeOver: 'Plus de {{value}}',
rangeUnder: 'Sous {{value}}',
reset: 'Réessayer',
reset: 'Réinitialiser',
select: 'Sélectionnez un filtre',
selected: '{{count}} Filtres sélectionnés',
showLess: 'Montrer moins',
showMore: 'Montre plus',
show: 'Afficher les filtres',
hide: 'Masquer les filtres',
toggleFilters: 'Basculer les filtres',
clear: 'Effacer',
apply: 'Appliquer',
},
input: {
placeholder: 'Chercher',
Expand Down
3 changes: 3 additions & 0 deletions packages/search-ui/src/i18n/locale/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const it: Locale = {
generic: 'Qualcosa è andato storto. Si prega di controllare di nuovo.',
},
filter: {
label: 'Filtri',
all: 'Tutto',
rangeOver: 'Oltre {{value}}',
rangeUnder: 'Sotto {{value}}',
Expand All @@ -31,6 +32,8 @@ const it: Locale = {
show: 'Mostra filtri.',
hide: 'Nascondi filtri',
toggleFilters: 'Attiva/disattiva i filtri',
clear: 'Chiaro',
apply: 'Applicare',
},
input: {
placeholder: 'Ricerca',
Expand Down
3 changes: 3 additions & 0 deletions packages/search-ui/src/i18n/locale/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const nl: Locale = {
generic: 'Er is iets fout gegaan. Controleer alstublieft nog een keer.',
},
filter: {
label: 'Filteren',
all: 'Alle',
rangeOver: 'Over {{value}}',
rangeUnder: 'Onder {{value}}',
Expand All @@ -31,6 +32,8 @@ const nl: Locale = {
show: 'Toon filters',
hide: 'Filters verbergen',
toggleFilters: 'Filters wisselen',
clear: 'Mak leeg',
apply: 'Toepassen',
},
input: {
placeholder: 'Zoeken',
Expand Down
5 changes: 5 additions & 0 deletions packages/search-ui/src/i18n/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export type Locale = {
generic: string;
};
filter: {
label: string;
/** Shown in TabFilter component as the first tab */
all: string;
/** Shown when formatting price */
Expand All @@ -49,6 +50,10 @@ export type Locale = {
hide: string;
/** Text used by screen reader when the user focuses on the toggle filter button */
toggleFilters: string;
/** The clear filters button text */
clear: string;
/** The apply filters button text */
apply: string;
};
input: {
/** Placeholder for search input */
Expand Down

0 comments on commit ff60fe9

Please sign in to comment.