mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 22:29:19 +08:00
feat(i18n): translate new note title
This commit is contained in:
parent
dd622f399a
commit
301e4b6ea9
2 changed files with 5 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ import { AttachmentRow, AttributeRow, BranchRow, NoteRow, NoteType } from '../be
|
|||
import TaskContext from "./task_context.js";
|
||||
import { NoteParams } from './note-interface.js';
|
||||
import imageService from "./image.js";
|
||||
import { t } from "i18next";
|
||||
|
||||
interface FoundLink {
|
||||
name: "imageLink" | "internalLink" | "includeNoteLink" | "relationMapLink",
|
||||
|
|
@ -95,7 +96,7 @@ function copyChildAttributes(parentNote: BNote, childNote: BNote) {
|
|||
}
|
||||
|
||||
function getNewNoteTitle(parentNote: BNote) {
|
||||
let title = "new note";
|
||||
let title = t("notes.new-note");
|
||||
|
||||
const titleTemplate = parentNote.getLabelValue('titleTemplate');
|
||||
|
||||
|
|
|
|||
|
|
@ -240,5 +240,8 @@
|
|||
"other": "Other",
|
||||
"advanced-title": "Advanced",
|
||||
"visible-launchers-title": "Visible Launchers"
|
||||
},
|
||||
"notes": {
|
||||
"new-note": "New note"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue