From 7fc3fdab948bd597460f3760d5d2441e0249fc30 Mon Sep 17 00:00:00 2001 From: Nriver <6752679+Nriver@users.noreply.github.com> Date: Fri, 2 Aug 2024 09:09:49 +0800 Subject: [PATCH] add translation for note launcher button --- src/public/app/widgets/buttons/launcher/note_launcher.js | 4 ++-- src/public/translations/cn/translation.json | 3 +++ src/public/translations/en/translation.json | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/public/app/widgets/buttons/launcher/note_launcher.js b/src/public/app/widgets/buttons/launcher/note_launcher.js index ec0b2d7359..cf8c211614 100644 --- a/src/public/app/widgets/buttons/launcher/note_launcher.js +++ b/src/public/app/widgets/buttons/launcher/note_launcher.js @@ -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; } diff --git a/src/public/translations/cn/translation.json b/src/public/translations/cn/translation.json index 4bc1c72695..fa3d7b6d1b 100644 --- a/src/public/translations/cn/translation.json +++ b/src/public/translations/cn/translation.json @@ -621,5 +621,8 @@ }, "update_available": { "update_available": "有更新可用" + }, + "note_launcher": { + "this_launcher_doesnt_define_target_note": "此启动器未定义目标笔记。" } } diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json index ea75535d8a..a6272fb1f3 100644 --- a/src/public/translations/en/translation.json +++ b/src/public/translations/en/translation.json @@ -622,5 +622,8 @@ }, "update_available": { "update_available": "Update available" + }, + "note_launcher": { + "this_launcher_doesnt_define_target_note": "This launcher doesn't define target note." } }