diff --git a/.changeset/brave-beans-drum.md b/.changeset/brave-beans-drum.md new file mode 100644 index 000000000..02855a4ff --- /dev/null +++ b/.changeset/brave-beans-drum.md @@ -0,0 +1,5 @@ +--- +'@sajari/react-search-ui': patch +--- + +Fix wrong/missing French translation diff --git a/packages/search-ui/src/i18n/locale/de.ts b/packages/search-ui/src/i18n/locale/de.ts index 1497e5d1a..2f50e9ab9 100644 --- a/packages/search-ui/src/i18n/locale/de.ts +++ b/packages/search-ui/src/i18n/locale/de.ts @@ -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}}', @@ -31,6 +32,8 @@ const de: Locale = { show: 'Filter anzeigen', hide: 'Filter ausblenden', toggleFilters: 'Filter umschalten', + clear: 'Klar', + apply: 'Anwenden', }, input: { placeholder: 'Suche', diff --git a/packages/search-ui/src/i18n/locale/en.ts b/packages/search-ui/src/i18n/locale/en.ts index 02cd94f85..c28135912 100644 --- a/packages/search-ui/src/i18n/locale/en.ts +++ b/packages/search-ui/src/i18n/locale/en.ts @@ -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}}', @@ -31,6 +32,8 @@ const en: Locale = { show: 'Show filters', hide: 'Hide filters', toggleFilters: 'Toggle Filters', + clear: 'Clear', + apply: 'Apply', }, input: { placeholder: 'Search', diff --git a/packages/search-ui/src/i18n/locale/es.ts b/packages/search-ui/src/i18n/locale/es.ts index 614559003..b34bf0115 100644 --- a/packages/search-ui/src/i18n/locale/es.ts +++ b/packages/search-ui/src/i18n/locale/es.ts @@ -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}}', @@ -31,6 +32,8 @@ const es: Locale = { show: 'Mostrar filtros', hide: 'Ocultar filtros', toggleFilters: 'Alternar filtros', + clear: 'Claro', + apply: 'Aplicar', }, input: { placeholder: 'Búsqueda', diff --git a/packages/search-ui/src/i18n/locale/fr.ts b/packages/search-ui/src/i18n/locale/fr.ts index 335803a31..292d2aa63 100644 --- a/packages/search-ui/src/i18n/locale/fr.ts +++ b/packages/search-ui/src/i18n/locale/fr.ts @@ -20,10 +20,11 @@ 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', @@ -31,6 +32,8 @@ const fr: Locale = { show: 'Afficher les filtres', hide: 'Masquer les filtres', toggleFilters: 'Basculer les filtres', + clear: 'Effacer', + apply: 'Appliquer', }, input: { placeholder: 'Chercher', diff --git a/packages/search-ui/src/i18n/locale/it.ts b/packages/search-ui/src/i18n/locale/it.ts index daeea6b72..8881fb0c9 100644 --- a/packages/search-ui/src/i18n/locale/it.ts +++ b/packages/search-ui/src/i18n/locale/it.ts @@ -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}}', @@ -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', diff --git a/packages/search-ui/src/i18n/locale/nl.ts b/packages/search-ui/src/i18n/locale/nl.ts index f51922eb4..24b9acd23 100644 --- a/packages/search-ui/src/i18n/locale/nl.ts +++ b/packages/search-ui/src/i18n/locale/nl.ts @@ -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}}', @@ -31,6 +32,8 @@ const nl: Locale = { show: 'Toon filters', hide: 'Filters verbergen', toggleFilters: 'Filters wisselen', + clear: 'Mak leeg', + apply: 'Toepassen', }, input: { placeholder: 'Zoeken', diff --git a/packages/search-ui/src/i18n/types.ts b/packages/search-ui/src/i18n/types.ts index 0929d95a3..23da16057 100644 --- a/packages/search-ui/src/i18n/types.ts +++ b/packages/search-ui/src/i18n/types.ts @@ -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 */ @@ -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 */