chore(views/table): use translations for new label/relation

This commit is contained in:
Elian Doran 2025-07-19 14:04:25 +03:00
parent 9dd0eb7b9b
commit ceb08593d8
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -1958,7 +1958,9 @@
"add-column-to-the-right": "Add column to the right",
"edit-column": "Edit column",
"delete_column_confirmation": "Are you sure you want to delete this column? The corresponding attribute will be removed from all notes.",
"delete-column": "Delete column"
"delete-column": "Delete column",
"new-column-label": "Label",
"new-column-relation": "Relation"
},
"book_properties_config": {
"hide-weekends": "Hide weekends",

View file

@ -249,7 +249,7 @@ function buildColumnItems(tabulator: Tabulator) {
function buildInsertSubmenu(e: MouseEvent, referenceColumn: ColumnComponent, direction: "before" | "after"): MenuItem<unknown>[] {
return [
{
title: "Label",
title: t("table_view.new-column-label"),
handler: () => {
getParentComponent(e)?.triggerCommand("addNewTableColumn", {
referenceColumn,
@ -259,7 +259,7 @@ function buildInsertSubmenu(e: MouseEvent, referenceColumn: ColumnComponent, dir
}
},
{
title: "Relation",
title: t("table_view.new-column-relation"),
handler: () => {
getParentComponent(e)?.triggerCommand("addNewTableColumn", {
referenceColumn,