From d717269563078881bc41690caa7ec6a5842ee4ad Mon Sep 17 00:00:00 2001 From: danis Date: Wed, 6 Dec 2023 20:08:47 +0100 Subject: [PATCH] fix(searchBarV2): translation search bar placeholder --- front/components/V2/SearchBar.tsx | 2 +- front/i18n/Translations.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/front/components/V2/SearchBar.tsx b/front/components/V2/SearchBar.tsx index f02df3a..8c3c4e0 100644 --- a/front/components/V2/SearchBar.tsx +++ b/front/components/V2/SearchBar.tsx @@ -88,7 +88,7 @@ const SearchBarComponent = () => { type="text" value={query} variant={'unstyled'} - placeholder="What are you looking for ?" + placeholder={translate('searchBarPlaceholder')} style={{ width: '100%', height: 30 }} onChangeText={(value) => setQuery(value)} /> diff --git a/front/i18n/Translations.ts b/front/i18n/Translations.ts index fdaf20f..9b40b71 100644 --- a/front/i18n/Translations.ts +++ b/front/i18n/Translations.ts @@ -84,6 +84,7 @@ export const en = { songsFilter: 'Songs', genreFilter: 'Genres', favoriteFilter: 'Favorites', + searchBarPlaceholder: 'What are you looking for ?', // profile page user: 'Profile', @@ -396,6 +397,7 @@ export const fr: typeof en = { songsFilter: 'Morceaux', genreFilter: 'Genres', favoriteFilter: 'Favoris', + searchBarPlaceholder: 'Que recherchez vous ?', // Difficulty settings diffBtn: 'Difficulté', @@ -701,6 +703,7 @@ export const sp: typeof en = { songsFilter: 'canciones', genreFilter: 'géneros', favoriteFilter: 'Favorites', + searchBarPlaceholder: 'Qué estás buscando ?', // Difficulty settings diffBtn: 'Dificultad',