chore(views/table): add translations

This commit is contained in:
Elian Doran 2025-07-14 20:59:29 +03:00
parent cf31367acd
commit ab093ed9a0
No known key found for this signature in database
2 changed files with 14 additions and 16 deletions

View File

@ -1953,7 +1953,9 @@
"show-hide-columns": "Show/hide columns", "show-hide-columns": "Show/hide columns",
"row-insert-above": "Insert row above", "row-insert-above": "Insert row above",
"row-insert-below": "Insert row below", "row-insert-below": "Insert row below",
"row-insert-child": "Insert child note" "row-insert-child": "Insert child note",
"add-column-to-the-left": "Add column to the left",
"add-column-to-the-right": "Add column to the right"
}, },
"book_properties_config": { "book_properties_config": {
"hide-weekends": "Hide weekends", "hide-weekends": "Hide weekends",

View File

@ -80,23 +80,19 @@ function showColumnContextMenu(_e: UIEvent, column: ColumnComponent, tabulator:
}, },
{ title: "----" }, { title: "----" },
{ {
title: "Add column to the left", title: t("table_view.add-column-to-the-left"),
handler: () => { uiIcon: "bx bx-horizontal-left",
getParentComponent(e)?.triggerCommand("addNoteListItem", { handler: () => getParentComponent(e)?.triggerCommand("addNoteListItem", {
referenceColumn: column referenceColumn: column
}); })
console.log("Add col");
}
}, },
{ {
title: "Add column to the right", title: t("table_view.add-column-to-the-right"),
handler: () => { uiIcon: "bx bx-horizontal-right",
getParentComponent(e)?.triggerCommand("addNoteListItem", { handler: () => getParentComponent(e)?.triggerCommand("addNoteListItem", {
referenceColumn: column, referenceColumn: column,
direction: "after" direction: "after"
}); })
console.log("Add col after");
}
} }
], ],
selectMenuItemHandler() {}, selectMenuItemHandler() {},