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

View File

@ -621,5 +621,8 @@
}, },
"update_available": { "update_available": {
"update_available": "有更新可用" "update_available": "有更新可用"
},
"note_launcher": {
"this_launcher_doesnt_define_target_note": "此启动器未定义目标笔记。"
} }
} }

View File

@ -622,5 +622,8 @@
}, },
"update_available": { "update_available": {
"update_available": "Update available" "update_available": "Update available"
},
"note_launcher": {
"this_launcher_doesnt_define_target_note": "This launcher doesn't define target note."
} }
} }