mirror of
https://github.com/zadam/trilium.git
synced 2025-09-12 17:48:34 +08:00
chore(views/table): use translations for new label/relation
This commit is contained in:
parent
9dd0eb7b9b
commit
ceb08593d8
2 changed files with 5 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue