mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
feat(i18n): translate new note title
This commit is contained in:
parent
dd622f399a
commit
301e4b6ea9
@ -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…
x
Reference in New Issue
Block a user