diff --git a/src/assistant/ResultMenu/ResultMenuContent.jsx b/src/assistant/ResultMenu/ResultMenuContent.jsx index 3792ed0821..b7529c2c20 100644 --- a/src/assistant/ResultMenu/ResultMenuContent.jsx +++ b/src/assistant/ResultMenu/ResultMenuContent.jsx @@ -6,6 +6,7 @@ import Circle from 'cozy-ui/transpiled/react/Circle' import ArrowUpIcon from 'cozy-ui/transpiled/react/Icons/ArrowUp' import Icon from 'cozy-ui/transpiled/react/Icon' import ListItemSkeleton from 'cozy-ui/transpiled/react/Skeletons/ListItemSkeleton' +import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n' import { useSearch } from '../SearchProvider' import ResultMenuItem from './ResultMenuItem' @@ -34,6 +35,7 @@ const SearchResult = () => { } const ResultMenuContent = ({ hasArrowDown, onClick }) => { + const { t } = useI18n() const { searchValue } = useSearch() return ( @@ -49,6 +51,7 @@ const ResultMenuContent = ({ hasArrowDown, onClick }) => { } primaryText={searchValue} + secondaryText={t('assistant.search.result')} onClick={onClick} /> {flag('cozy.assistant.withSearchResult') && } diff --git a/src/locales/de.json b/src/locales/de.json index 1de2daef42..81159cb27f 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -1,7 +1,8 @@ { "assistant": { "search": { - "placeholder": "Eine Frage?" + "placeholder": "Eine Frage?", + "result": "Den Assistenten fragen" }, "dialog": { "close": "Schließen" diff --git a/src/locales/en.json b/src/locales/en.json index 689d219bc6..ac5b2b6901 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,7 +1,8 @@ { "assistant": { "search": { - "placeholder": "Any question?" + "placeholder": "Any question?", + "result": "Ask the assistant" }, "dialog": { "close": "Close" diff --git a/src/locales/es.json b/src/locales/es.json index a005c5cfd0..f871de9a2b 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -1,7 +1,8 @@ { "assistant": { "search": { - "placeholder": "¿Tiene alguna pregunta?" + "placeholder": "¿Tiene alguna pregunta?", + "result": "Pregunte al asistente" }, "dialog": { "close": "Cerrar" diff --git a/src/locales/fr.json b/src/locales/fr.json index d31b500822..28222f5774 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -1,7 +1,8 @@ { "assistant": { "search": { - "placeholder": "Une question ?" + "placeholder": "Une question ?", + "result": "Demander à l'assistant" }, "dialog": { "close": "Fermer" diff --git a/src/locales/it.json b/src/locales/it.json index 864eb48005..f1d0ad7180 100644 --- a/src/locales/it.json +++ b/src/locales/it.json @@ -1,7 +1,8 @@ { "assistant": { "search": { - "placeholder": "Avete una domanda?" + "placeholder": "Avete una domanda?", + "result": "Chiedete all'assistente" }, "dialog": { "close": "Chiudere" diff --git a/src/locales/ja.json b/src/locales/ja.json index 9fe974854c..6f55026ce1 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -1,7 +1,8 @@ { "assistant": { "search": { - "placeholder": "質問はありますか?" + "placeholder": "質問はありますか?", + "result": "アシスタントに聞く" }, "dialog": { "close": "閉じる" diff --git a/src/locales/nl_NL.json b/src/locales/nl_NL.json index 214193c26e..7cfc5736d6 100644 --- a/src/locales/nl_NL.json +++ b/src/locales/nl_NL.json @@ -1,7 +1,8 @@ { "assistant": { "search": { - "placeholder": "Heb je een vraag?" + "placeholder": "Heb je een vraag?", + "result": "Vraag het de assistent" }, "dialog": { "close": "Sluit"