mirror of
https://github.com/zadam/trilium.git
synced 2025-09-13 18:16:40 +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",
|
"add-column-to-the-right": "Add column to the right",
|
||||||
"edit-column": "Edit column",
|
"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_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": {
|
"book_properties_config": {
|
||||||
"hide-weekends": "Hide weekends",
|
"hide-weekends": "Hide weekends",
|
||||||
|
|
|
@ -249,7 +249,7 @@ function buildColumnItems(tabulator: Tabulator) {
|
||||||
function buildInsertSubmenu(e: MouseEvent, referenceColumn: ColumnComponent, direction: "before" | "after"): MenuItem<unknown>[] {
|
function buildInsertSubmenu(e: MouseEvent, referenceColumn: ColumnComponent, direction: "before" | "after"): MenuItem<unknown>[] {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
title: "Label",
|
title: t("table_view.new-column-label"),
|
||||||
handler: () => {
|
handler: () => {
|
||||||
getParentComponent(e)?.triggerCommand("addNewTableColumn", {
|
getParentComponent(e)?.triggerCommand("addNewTableColumn", {
|
||||||
referenceColumn,
|
referenceColumn,
|
||||||
|
@ -259,7 +259,7 @@ function buildInsertSubmenu(e: MouseEvent, referenceColumn: ColumnComponent, dir
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Relation",
|
title: t("table_view.new-column-relation"),
|
||||||
handler: () => {
|
handler: () => {
|
||||||
getParentComponent(e)?.triggerCommand("addNewTableColumn", {
|
getParentComponent(e)?.triggerCommand("addNewTableColumn", {
|
||||||
referenceColumn,
|
referenceColumn,
|
||||||
|
|
Loading…
Add table
Reference in a new issue