Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(options/language): improve description & add translations
Elian Dorana9938cbf7d37
diff --git a/src/public/app/widgets/type_widgets/options/i18n/language.ts b/src/public/app/widgets/type_widgets/options/i18n/language.tsindex 10a1e5877a..1b8d341329 100644--- a/src/public/app/widgets/type_widgets/options/i18n/language.ts+++ b/src/public/app/widgets/type_widgets/options/i18n/language.ts@@ -1,10 +1,12 @@import OptionsWidget from "../options_widget.js";import type { OptionMap } from "../../../../../../services/options_interface.js";import { getAvailableLocales } from "../../../../services/i18n.js";+import { t } from "i18next";const TPL = `<div class="options-section">- <h4>Languages</h4>+ <h4>${t("content_language.title")}</h4>+ <p>${t("content_language.description")}</p><ul class="options-languages"></ul>diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.jsonindex ebd6a734bb..5dffe574b2 100644--- a/src/public/translations/en/translation.json+++ b/src/public/translations/en/translation.json@@ -1690,5 +1690,9 @@"note_language": {"not_set": "Not set","configure-languages": "Configure languages..."+ },+ "content_language": {+ "title": "Content languages",+ "description": "Select one or more languages that should appear in the language selection in the Basic Properties section of a read-only or editable text note. This will allow features such as spell-checking or right-to-left support."}}