Skip to content

Commit

Permalink
add translation for note launcher button
Browse files Browse the repository at this point in the history
  • Loading branch information
Nriver committed Aug 2, 2024
1 parent 625e9ef commit 7fc3fda
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/public/app/widgets/buttons/launcher/note_launcher.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions src/public/translations/cn/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -621,5 +621,8 @@
},
"update_available": {
"update_available": "有更新可用"
},
"note_launcher": {
"this_launcher_doesnt_define_target_note": "此启动器未定义目标笔记。"
}
}
3 changes: 3 additions & 0 deletions src/public/translations/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}

0 comments on commit 7fc3fda

Please sign in to comment.