add translation for note launcher button

This commit is contained in:
Nriver
2024-08-02 09:09:49 +08:00
parent 625e9efcf3
commit 7fc3fdab94
3 changed files with 8 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
import AbstractLauncher from "./abstract_launcher.js";
import { t } from "../../../services/i18n.js";
import dialogService from "../../../services/dialog.js";
import appContext from "../../../components/app_context.js";
import utils from "../../../services/utils.js";
@@ -58,7 +58,7 @@ export default class NoteLauncher extends AbstractLauncher {
const targetNoteId = this.launcherNote.getRelationValue('target');
if (!targetNoteId) {
dialogService.info("This launcher doesn't define target note.");
dialogService.info(t("note_launcher.this_launcher_doesnt_define_target_note"));
return;
}