add submit placeholder for message textarea (#200)

* add submit placeholder for message textarea

* fix typo in french translation

* Update MessageContent.tsx

---------

Co-authored-by: Jing Hua <59118459+ztjhz@users.noreply.github.com>
This commit is contained in:
Tindo N. Arsel 2023-04-05 05:59:01 +01:00 committed by GitHub
parent cda88d85f9
commit f6ff1f4635
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 27 additions and 13 deletions

View file

@ -36,5 +36,6 @@
"newFolder": "Ny mappe",
"cloneChat": "Klon Chat",
"cloned": "Klonet",
"enterToSubmit": "Tryk Enter for at sende"
"enterToSubmit": "Tryk Enter for at sende",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "New Folder",
"cloneChat": "Clone Chat",
"cloned": "Cloned",
"enterToSubmit": "Enter to submit"
"enterToSubmit": "Enter to submit",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "New Folder",
"cloneChat": "Clone Chat",
"cloned": "Cloned",
"enterToSubmit": "Enter to submit"
"enterToSubmit": "Enter to submit",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "Nueva Carpeta",
"cloneChat": "Clone Chat",
"cloned": "Cloned",
"enterToSubmit": "Enter to submit"
"enterToSubmit": "Enter to submit",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "Nouveau Dossier",
"cloneChat": "Cloner la Conversation",
"cloned": "Clonée",
"enterToSubmit": "Entrée pour soumettre"
"enterToSubmit": "Entrée pour soumettre",
"submitPlaceholder": "Saisissez un message ou sélectionnez [/] pour un prompt prédéfini..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "Nuova Cartella",
"cloneChat": "Duplica Conversazione",
"cloned": "Duplicata",
"enterToSubmit": "Invio per inviare"
"enterToSubmit": "Invio per inviare",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "新しいフォルダー",
"cloneChat": "チャットのコピーを作成",
"cloned": "完了しました",
"enterToSubmit": "Enterキーを押して送信"
"enterToSubmit": "Enterキーを押して送信",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "Folder Baru",
"cloneChat": "Buat salinan perbualan ini",
"cloned": "Dicipta",
"enterToSubmit": "Tekan Enter untuk hantar"
"enterToSubmit": "Tekan Enter untuk hantar",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "Ny mappe",
"cloneChat": "Klone chat",
"cloned": "Klonet",
"enterToSubmit": "Trykk enter for å sende"
"enterToSubmit": "Trykk enter for å sende",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "Ny mapp",
"cloneChat": "Klona chatt",
"cloned": "Klonad",
"enterToSubmit": "Tryck på Enter för att skicka"
"enterToSubmit": "Tryck på Enter för att skicka",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "新文件夹",
"cloneChat": "创建聊天副本",
"cloned": "已创建副本",
"enterToSubmit": "按回车键提交"
"enterToSubmit": "按回车键提交",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "新資料夾",
"cloneChat": "建立傾偈副本",
"cloned": "建立成功",
"enterToSubmit": "撳 Enter 鍵提交"
"enterToSubmit": "撳 Enter 鍵提交",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -36,5 +36,6 @@
"newFolder": "新資料夾",
"cloneChat": "創建聊天副本",
"cloned": "已創建副本",
"enterToSubmit": "按回車鍵提交"
"enterToSubmit": "按回車鍵提交",
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
}

View file

@ -439,6 +439,7 @@ const EditView = ({
_setContent(e.target.value);
}}
value={_content}
placeholder={t('submitPlaceholder') as string}
onKeyDown={handleKeyDown}
rows={1}
></textarea>