mirror of
https://github.com/NovaOSS/nova-betterchat.git
synced 2024-11-25 22:13:59 +01:00
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:
parent
cda88d85f9
commit
f6ff1f4635
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "Ny mappe",
|
"newFolder": "Ny mappe",
|
||||||
"cloneChat": "Klon Chat",
|
"cloneChat": "Klon Chat",
|
||||||
"cloned": "Klonet",
|
"cloned": "Klonet",
|
||||||
"enterToSubmit": "Tryk Enter for at sende"
|
"enterToSubmit": "Tryk Enter for at sende",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "New Folder",
|
"newFolder": "New Folder",
|
||||||
"cloneChat": "Clone Chat",
|
"cloneChat": "Clone Chat",
|
||||||
"cloned": "Cloned",
|
"cloned": "Cloned",
|
||||||
"enterToSubmit": "Enter to submit"
|
"enterToSubmit": "Enter to submit",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "New Folder",
|
"newFolder": "New Folder",
|
||||||
"cloneChat": "Clone Chat",
|
"cloneChat": "Clone Chat",
|
||||||
"cloned": "Cloned",
|
"cloned": "Cloned",
|
||||||
"enterToSubmit": "Enter to submit"
|
"enterToSubmit": "Enter to submit",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "Nueva Carpeta",
|
"newFolder": "Nueva Carpeta",
|
||||||
"cloneChat": "Clone Chat",
|
"cloneChat": "Clone Chat",
|
||||||
"cloned": "Cloned",
|
"cloned": "Cloned",
|
||||||
"enterToSubmit": "Enter to submit"
|
"enterToSubmit": "Enter to submit",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "Nouveau Dossier",
|
"newFolder": "Nouveau Dossier",
|
||||||
"cloneChat": "Cloner la Conversation",
|
"cloneChat": "Cloner la Conversation",
|
||||||
"cloned": "Clonée",
|
"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..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "Nuova Cartella",
|
"newFolder": "Nuova Cartella",
|
||||||
"cloneChat": "Duplica Conversazione",
|
"cloneChat": "Duplica Conversazione",
|
||||||
"cloned": "Duplicata",
|
"cloned": "Duplicata",
|
||||||
"enterToSubmit": "Invio per inviare"
|
"enterToSubmit": "Invio per inviare",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "新しいフォルダー",
|
"newFolder": "新しいフォルダー",
|
||||||
"cloneChat": "チャットのコピーを作成",
|
"cloneChat": "チャットのコピーを作成",
|
||||||
"cloned": "完了しました",
|
"cloned": "完了しました",
|
||||||
"enterToSubmit": "Enterキーを押して送信"
|
"enterToSubmit": "Enterキーを押して送信",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "Folder Baru",
|
"newFolder": "Folder Baru",
|
||||||
"cloneChat": "Buat salinan perbualan ini",
|
"cloneChat": "Buat salinan perbualan ini",
|
||||||
"cloned": "Dicipta",
|
"cloned": "Dicipta",
|
||||||
"enterToSubmit": "Tekan Enter untuk hantar"
|
"enterToSubmit": "Tekan Enter untuk hantar",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "Ny mappe",
|
"newFolder": "Ny mappe",
|
||||||
"cloneChat": "Klone chat",
|
"cloneChat": "Klone chat",
|
||||||
"cloned": "Klonet",
|
"cloned": "Klonet",
|
||||||
"enterToSubmit": "Trykk enter for å sende"
|
"enterToSubmit": "Trykk enter for å sende",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "Ny mapp",
|
"newFolder": "Ny mapp",
|
||||||
"cloneChat": "Klona chatt",
|
"cloneChat": "Klona chatt",
|
||||||
"cloned": "Klonad",
|
"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..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "新文件夹",
|
"newFolder": "新文件夹",
|
||||||
"cloneChat": "创建聊天副本",
|
"cloneChat": "创建聊天副本",
|
||||||
"cloned": "已创建副本",
|
"cloned": "已创建副本",
|
||||||
"enterToSubmit": "按回车键提交"
|
"enterToSubmit": "按回车键提交",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "新資料夾",
|
"newFolder": "新資料夾",
|
||||||
"cloneChat": "建立傾偈副本",
|
"cloneChat": "建立傾偈副本",
|
||||||
"cloned": "建立成功",
|
"cloned": "建立成功",
|
||||||
"enterToSubmit": "撳 Enter 鍵提交"
|
"enterToSubmit": "撳 Enter 鍵提交",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,5 +36,6 @@
|
||||||
"newFolder": "新資料夾",
|
"newFolder": "新資料夾",
|
||||||
"cloneChat": "創建聊天副本",
|
"cloneChat": "創建聊天副本",
|
||||||
"cloned": "已創建副本",
|
"cloned": "已創建副本",
|
||||||
"enterToSubmit": "按回車鍵提交"
|
"enterToSubmit": "按回車鍵提交",
|
||||||
|
"submitPlaceholder": "Type a message or select [/] for a predefined prompt..."
|
||||||
}
|
}
|
||||||
|
|
|
@ -439,6 +439,7 @@ const EditView = ({
|
||||||
_setContent(e.target.value);
|
_setContent(e.target.value);
|
||||||
}}
|
}}
|
||||||
value={_content}
|
value={_content}
|
||||||
|
placeholder={t('submitPlaceholder') as string}
|
||||||
onKeyDown={handleKeyDown}
|
onKeyDown={handleKeyDown}
|
||||||
rows={1}
|
rows={1}
|
||||||
></textarea>
|
></textarea>
|
||||||
|
|
Loading…
Reference in a new issue