From b33387fecc6d98920d8fc0130bf3cf11dcfa9fa1 Mon Sep 17 00:00:00 2001 From: Victor Mutai <victor.mutai@dillieduck.com> Date: Mon, 11 Dec 2023 23:03:29 +0300 Subject: [PATCH] chore: update ai placeholder text --- editors/demo/src/locale/en.js | 2 +- editors/demo/src/locale/es.js | 3 +-- .../src/AiService/components/AskAIOverlay.js | 7 +++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/editors/demo/src/locale/en.js b/editors/demo/src/locale/en.js index c76abe706..1e1c6af3c 100644 --- a/editors/demo/src/locale/en.js +++ b/editors/demo/src/locale/en.js @@ -72,7 +72,7 @@ const en = { Search: 'Search', }, AI: { - 'Find a better way to word this': 'Find a better way to word this', + Placeholder: 'How can I help you? Type your prompt here.', Submit: 'Submit', 'Replace selected text': 'Replace selected text', Insert: 'Insert', diff --git a/editors/demo/src/locale/es.js b/editors/demo/src/locale/es.js index 556f873a5..01309b04a 100644 --- a/editors/demo/src/locale/es.js +++ b/editors/demo/src/locale/es.js @@ -72,8 +72,7 @@ const es = { Search: 'Buscar', }, AI: { - 'Find a better way to word this': - 'Encuentre una mejor manera de redactar esto', + Placeholder: 'Le puedo ayudar en algo? Escriba su mensaje aquÃ.', Submit: 'Entregar', 'Replace selected text': 'Reemplazar texto seleccionado', Insert: 'Insertar', diff --git a/wax-prosemirror-services/src/AiService/components/AskAIOverlay.js b/wax-prosemirror-services/src/AiService/components/AskAIOverlay.js index b1360269f..c210cc087 100644 --- a/wax-prosemirror-services/src/AiService/components/AskAIOverlay.js +++ b/wax-prosemirror-services/src/AiService/components/AskAIOverlay.js @@ -205,10 +205,9 @@ const AskAIOverlay = ({ setPosition, position, config }) => { id="askAiInput" onKeyPress={handleKeyDown} placeholder={ - !isEmpty(i18n) && - i18n.exists(`Wax.AI.Find a better way to word this`) - ? t(`Wax.AI.Find a better way to word this`) - : 'Find a better way to word this' + !isEmpty(i18n) && i18n.exists(`Wax.AI.Placeholder`) + ? t(`Wax.AI.Placeholder`) + : 'How can I help you? Type your prompt here.' } ref={inputRef} type="text" -- GitLab