forked from XiaoMo/ChatGPT-Next-Web
feat: display line break hints in enter mode
This commit is contained in:
parent
b94607f636
commit
974c455bf9
@ -1,3 +1,5 @@
|
||||
import { SubmitKey } from "../store/app";
|
||||
|
||||
const cn = {
|
||||
WIP: "该功能仍在开发中……",
|
||||
Error: {
|
||||
@ -17,7 +19,13 @@ const cn = {
|
||||
Retry: "重试",
|
||||
},
|
||||
Typing: "正在输入…",
|
||||
Input: (submitKey: string) => `输入消息,${submitKey} 发送, Shift + Enter 换行`,
|
||||
Input: (submitKey: string) => {
|
||||
var inputHints = `输入消息,${submitKey} 发送`;
|
||||
if (submitKey === String(SubmitKey.Enter)) {
|
||||
inputHints += ", Shift + Enter 换行";
|
||||
}
|
||||
return inputHints;
|
||||
},
|
||||
Send: "发送",
|
||||
},
|
||||
Export: {
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { SubmitKey } from "../store/app";
|
||||
import type { LocaleType } from "./index";
|
||||
|
||||
const en: LocaleType = {
|
||||
@ -20,7 +21,13 @@ const en: LocaleType = {
|
||||
Retry: "Retry",
|
||||
},
|
||||
Typing: "Typing…",
|
||||
Input: (submitKey: string) => `Type something and press ${submitKey} to send, press Shift + Enter to newline`,
|
||||
Input: (submitKey: string) => {
|
||||
var inputHints = `Type something and press ${submitKey} to send`;
|
||||
if (submitKey === String(SubmitKey.Enter)) {
|
||||
inputHints += ", press Shift + Enter to newline";
|
||||
}
|
||||
return inputHints;
|
||||
},
|
||||
Send: "Send",
|
||||
},
|
||||
Export: {
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { SubmitKey } from "../store/app";
|
||||
import type { LocaleType } from "./index";
|
||||
|
||||
const tw: LocaleType = {
|
||||
@ -19,7 +20,13 @@ const tw: LocaleType = {
|
||||
Retry: "重試",
|
||||
},
|
||||
Typing: "正在輸入…",
|
||||
Input: (submitKey: string) => `輸入訊息後,按下 ${submitKey} 鍵即可發送, Shift + Enter 鍵換行`,
|
||||
Input: (submitKey: string) => {
|
||||
var inputHints = `輸入訊息後,按下 ${submitKey} 鍵即可發送`;
|
||||
if (submitKey === String(SubmitKey.Enter)) {
|
||||
inputHints += ", Shift + Enter 鍵換行";
|
||||
}
|
||||
return inputHints;
|
||||
},
|
||||
Send: "發送",
|
||||
},
|
||||
Export: {
|
||||
|
Loading…
Reference in New Issue
Block a user