feat(i18n): translate new note title

This commit is contained in:
Elian Doran 2024-12-21 21:08:34 +02:00
parent dd622f399a
commit 301e4b6ea9
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View File

@ -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');

View File

@ -240,5 +240,8 @@
"other": "Other",
"advanced-title": "Advanced",
"visible-launchers-title": "Visible Launchers"
},
"notes": {
"new-note": "New note"
}
}