feat: add table and image context menus with localization support
- Implemented context menus for table operations including adding, deleting rows/columns, and alignment options. - Added context menu for image operations such as replacing, toggling caption, resetting size, and deleting images. - Updated English and Chinese localization files to include new menu options for table and image functionalities.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -410,6 +410,24 @@ const enUS = {
|
||||
empty: "Drag to choose a table size",
|
||||
hint: "Keep dragging near the edge to expand the grid",
|
||||
},
|
||||
tableMenu: {
|
||||
addRowBefore: "Insert row above",
|
||||
addRowAfter: "Insert row below",
|
||||
deleteRow: "Delete row",
|
||||
addColBefore: "Insert left column",
|
||||
addColAfter: "Insert right column",
|
||||
deleteCol: "Delete column",
|
||||
alignLeft: "Align left",
|
||||
alignCenter: "Align center",
|
||||
alignRight: "Align right",
|
||||
deleteTable: "Delete table",
|
||||
},
|
||||
imageMenu: {
|
||||
replace: "Replace image",
|
||||
caption: "Toggle caption",
|
||||
resetSize: "Reset size",
|
||||
delete: "Delete image",
|
||||
},
|
||||
messages: {
|
||||
saved: "Article saved.",
|
||||
generating: "This article is still generating. Try editing it later.",
|
||||
|
||||
@@ -417,6 +417,24 @@ const zhCN = {
|
||||
empty: "拖拽选择表格尺寸",
|
||||
hint: "按住拖动到边缘可继续扩展",
|
||||
},
|
||||
tableMenu: {
|
||||
addRowBefore: "上方插行",
|
||||
addRowAfter: "下方插行",
|
||||
deleteRow: "删除行",
|
||||
addColBefore: "左侧插列",
|
||||
addColAfter: "右侧插列",
|
||||
deleteCol: "删除列",
|
||||
alignLeft: "左对齐",
|
||||
alignCenter: "居中",
|
||||
alignRight: "右对齐",
|
||||
deleteTable: "删除表格",
|
||||
},
|
||||
imageMenu: {
|
||||
replace: "替换图片",
|
||||
caption: "切换图注",
|
||||
resetSize: "重置大小",
|
||||
delete: "删除图片",
|
||||
},
|
||||
messages: {
|
||||
saved: "文章已保存",
|
||||
generating: "文章还在生成中,请稍后再编辑。",
|
||||
|
||||
Reference in New Issue
Block a user