Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ export function SettingsChat() {
<SettingsSection title={t("input.sectionTitle")}>
<SettingsFieldList>
<SettingsFieldRow
title={t("input.shortcutTitle")}
description={t("input.shortcutDescription", { shortcut: `${modifierLabel}+Enter` })}
title={t("input.enterBehaviorTitle")}
description={t("input.enterBehaviorDescription", { shortcut: `${modifierLabel}+Enter` })}
>
<Select
value={settings.sendShortcut === "enter" ? "enter" : modifierShortcut}
Expand All @@ -476,8 +476,8 @@ export function SettingsChat() {
<SelectValue />
</SelectTrigger>
<SelectContent align="start">
<SelectItem value="enter">Enter</SelectItem>
<SelectItem value={modifierShortcut}>{modifierLabel}+Enter</SelectItem>
<SelectItem value="enter">{t("input.enterBehavior.send")}</SelectItem>
<SelectItem value={modifierShortcut}>{t("input.enterBehavior.newline")}</SelectItem>
</SelectContent>
</Select>
</SettingsFieldRow>
Expand Down
8 changes: 6 additions & 2 deletions frontend/i18n/messages/en-US/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,12 @@
},
"input": {
"sectionTitle": "Input and sending",
"shortcutTitle": "Send shortcut",
"shortcutDescription": "This platform uses {shortcut} to submit messages.",
"enterBehaviorTitle": "Enter key behavior",
"enterBehaviorDescription": "Choose whether Enter sends messages or inserts a new line. When Enter inserts a new line, use {shortcut} to send.",
"enterBehavior": {
"send": "Enter sends message",
"newline": "Enter inserts new line"
},
"heightTitle": "Input area height",
"heightDescription": "Controls the maximum height allowed when the input box auto-expands.",
"height": {
Expand Down
8 changes: 6 additions & 2 deletions frontend/i18n/messages/zh-CN/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,12 @@
},
"input": {
"sectionTitle": "输入与发送",
"shortcutTitle": "发送快捷键",
"shortcutDescription": "当前平台使用 {shortcut} 提交消息。",
"enterBehaviorTitle": "Enter 键行为",
"enterBehaviorDescription": "选择 Enter 是发送消息还是换行。选择换行时,使用 {shortcut} 发送消息。",
"enterBehavior": {
"send": "Enter 发送消息",
"newline": "Enter 换行"
},
"heightTitle": "输入区域高度",
"heightDescription": "控制输入框自动扩展时允许占用的最大高度。",
"height": {
Expand Down
Loading