Skip to content
Snippets Groups Projects
Commit 4aa60fc1 authored by Christos's avatar Christos
Browse files

Merge branch '830-update-ai-placeholder-text' into 'master'

Update placeholder text for AI prompt

See merge request !529
parents 59131834 b33387fe
No related branches found
No related tags found
1 merge request!529Update placeholder text for AI prompt
Pipeline #56821 passed with stages
in 4 minutes and 41 seconds
...@@ -72,7 +72,7 @@ const en = { ...@@ -72,7 +72,7 @@ const en = {
Search: 'Search', Search: 'Search',
}, },
AI: { 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', Submit: 'Submit',
'Replace selected text': 'Replace selected text', 'Replace selected text': 'Replace selected text',
Insert: 'Insert', Insert: 'Insert',
......
...@@ -72,8 +72,7 @@ const es = { ...@@ -72,8 +72,7 @@ const es = {
Search: 'Buscar', Search: 'Buscar',
}, },
AI: { AI: {
'Find a better way to word this': Placeholder: 'Le puedo ayudar en algo? Escriba su mensaje aquí.',
'Encuentre una mejor manera de redactar esto',
Submit: 'Entregar', Submit: 'Entregar',
'Replace selected text': 'Reemplazar texto seleccionado', 'Replace selected text': 'Reemplazar texto seleccionado',
Insert: 'Insertar', Insert: 'Insertar',
......
...@@ -205,10 +205,9 @@ const AskAIOverlay = ({ setPosition, position, config }) => { ...@@ -205,10 +205,9 @@ const AskAIOverlay = ({ setPosition, position, config }) => {
id="askAiInput" id="askAiInput"
onKeyPress={handleKeyDown} onKeyPress={handleKeyDown}
placeholder={ placeholder={
!isEmpty(i18n) && !isEmpty(i18n) && i18n.exists(`Wax.AI.Placeholder`)
i18n.exists(`Wax.AI.Find a better way to word this`) ? t(`Wax.AI.Placeholder`)
? t(`Wax.AI.Find a better way to word this`) : 'How can I help you? Type your prompt here.'
: 'Find a better way to word this'
} }
ref={inputRef} ref={inputRef}
type="text" type="text"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment