Skip to content

Build your personal knowledge base with Trilium Notes

chore(options): use translations

Elian Doran9dc157b9705a
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 6d3ad07a29..e3ae657b72 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -1197,7 +1197,6 @@
"restore_provider": "Restore provider to search",
"similarity_threshold": "Similarity Threshold",
"similarity_threshold_description": "Minimum similarity score (0-1) for notes to be included in context for LLM queries",
-
"reprocess_index": "Rebuild Search Index",
"reprocessing_index": "Rebuilding...",
"reprocess_index_started": "Search index optimization started in the background",
@@ -1929,5 +1928,10 @@
"download_link": "Download Native Version",
"continue_anyway": "Continue Anyway",
"dont_show_again": "Don't show this warning again"
+ },
+ "editorfeatures": {
+ "title": "Features",
+ "emoji_completion_enabled": "Enable Emoji auto-completion",
+ "note_completion_enabled": "Enable note auto-completion"
}
}
diff --git a/apps/client/src/widgets/type_widgets/options/text_notes/features.ts b/apps/client/src/widgets/type_widgets/options/text_notes/features.ts
index 77c919909e..d0986fe0dd 100644
--- a/apps/client/src/widgets/type_widgets/options/text_notes/features.ts
+++ b/apps/client/src/widgets/type_widgets/options/text_notes/features.ts
@@ -1,21 +1,22 @@
import { OptionMap } from "@triliumnext/commons";
import OptionsWidget from "../options_widget";
+import { t } from "../../../../services/i18n";
const TPL = /*html*/`
<div class="options-section">
- <h4>Features</h4>
+ <h4>${t("editorfeatures.title")}</h4>
<div>
<label class="tn-checkbox">
<input type="checkbox" name="emoji-completion-enabled" />
- Enable Emoji auto-completion
+ ${t("editorfeatures.emoji_completion_enabled")}
</label>
</div>
<div>
<label class="tn-checkbox">
<input type="checkbox" name="note-completion-enabled" />
- Enable note auto-completion
+ ${t("editorfeatures.note_completion_enabled")}
</label>
</div>
</div>