chore(options): use translations

This commit is contained in:
Elian Doran 2025-06-23 23:30:13 +03:00
parent b7f5c0e07a
commit 9dc157b970
No known key found for this signature in database
2 changed files with 9 additions and 4 deletions

View File

@ -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"
}
}

View File

@ -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>