mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
add translation for the last ribbon widget
This commit is contained in:
parent
74c4634da2
commit
9453ec4e29
@ -1,3 +1,4 @@
|
||||
import { t } from "../../services/i18n.js";
|
||||
import linkService from "../../services/link.js";
|
||||
import server from "../../services/server.js";
|
||||
import froca from "../../services/froca.js";
|
||||
@ -48,7 +49,7 @@ export default class SimilarNotesWidget extends NoteContextAwareWidget {
|
||||
getTitle() {
|
||||
return {
|
||||
show: this.isEnabled(),
|
||||
title: 'Similar Notes',
|
||||
title: t('similar_notes.title'),
|
||||
icon: 'bx bx-bar-chart'
|
||||
};
|
||||
}
|
||||
@ -67,7 +68,7 @@ export default class SimilarNotesWidget extends NoteContextAwareWidget {
|
||||
const similarNotes = await server.get(`similar-notes/${this.noteId}`);
|
||||
|
||||
if (similarNotes.length === 0) {
|
||||
this.$similarNotesWrapper.empty().append("No similar notes found.");
|
||||
this.$similarNotesWrapper.empty().append(t('similar_notes.no_similar_notes_found'));
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -776,5 +776,9 @@
|
||||
"unknown_search_option": "未知的搜索选项 {{searchOptionName}}",
|
||||
"search_note_saved": "搜索笔记已保存到 {{- notePathTitle}}",
|
||||
"actions_executed": "操作已执行。"
|
||||
},
|
||||
"similar_notes": {
|
||||
"title": "相似笔记",
|
||||
"no_similar_notes_found": "未找到相似的笔记。"
|
||||
}
|
||||
}
|
||||
|
@ -777,5 +777,9 @@
|
||||
"unknown_search_option": "Unknown search option {{searchOptionName}}",
|
||||
"search_note_saved": "Search note has been saved into {{- notePathTitle}}",
|
||||
"actions_executed": "Actions have been executed."
|
||||
},
|
||||
"similar_notes": {
|
||||
"title": "Similar Notes",
|
||||
"no_similar_notes_found": "No similar notes found."
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user