Skip to content

Commit 8ad0e23

Browse files
committed
fix ui text
1 parent fe820e6 commit 8ad0e23

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -562,14 +562,14 @@ export const ChatRowContent = ({
562562
<>
563563
{t("chat:notebook.actions.editWants", {
564564
action: t(
565-
tool.action === "insert_cell"
566-
? "chat:notebook.types.insertCell"
565+
tool.action === "insert_cells"
566+
? "chat:notebook.types.insertCells"
567567
: tool.action === "modify_cell_content"
568568
? "chat:notebook.types.modifyCell"
569569
: "chat:notebook.types.replaceCells",
570570
),
571571
indexText:
572-
tool.action === "modify_cell_content"
572+
tool.action === "insert_cells" || tool.action === "modify_cell_content"
573573
? t("chat:notebook.types.atIndex", { index: tool.cell_index })
574574
: tool.action === "replace_cells" &&
575575
tool.start_index !== undefined &&
@@ -589,14 +589,14 @@ export const ChatRowContent = ({
589589
<>
590590
{t("chat:notebook.actions.editDid", {
591591
action: t(
592-
tool.action === "insert_cell"
593-
? "chat:notebook.types.insertCell"
592+
tool.action === "insert_cells"
593+
? "chat:notebook.types.insertCells"
594594
: tool.action === "modify_cell_content"
595595
? "chat:notebook.types.modifyCell"
596596
: "chat:notebook.types.replaceCells",
597597
),
598598
indexText:
599-
tool.action === "modify_cell_content"
599+
tool.action === "insert_cells" || tool.action === "modify_cell_content"
600600
? t("chat:notebook.types.atIndex", { index: tool.cell_index })
601601
: tool.action === "replace_cells" &&
602602
tool.start_index !== undefined &&

webview-ui/src/i18n/locales/en/chat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
"types": {
262262
"getInfo": "overall information",
263263
"getCells": "details of cells",
264-
"insertCell": "insert a cell",
264+
"insertCells": "insert cells",
265265
"modifyCell": "modify the cell",
266266
"replaceCells": "replace cells",
267267
"atIndex": "at index {{index}}",

webview-ui/src/i18n/locales/zh-CN/chat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
"types": {
262262
"getInfo": "总体信息",
263263
"getCells": "单元格详情",
264-
"insertCell": "插入单元格",
264+
"insertCells": "插入单元格",
265265
"modifyCell": "修改单元格",
266266
"replaceCells": "替换多个单元格",
267267
"atIndex": "在索引 {{index}} 处",

webview-ui/src/i18n/locales/zh-TW/chat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
"types": {
262262
"getInfo": "整體資訊",
263263
"getCells": "儲存格詳情",
264-
"insertCell": "插入儲存格",
264+
"insertCells": "插入儲存格",
265265
"modifyCell": "修改儲存格",
266266
"replaceCells": "替換多個儲存格",
267267
"atIndex": "在索引 {{index}} 處",

0 commit comments

Comments
 (0)