From a9938cbf7d37f40a2914736bfc6c69e95632b319 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 5 Mar 2025 18:54:59 +0200 Subject: [PATCH] feat(options/language): improve description & add translations --- src/public/app/widgets/type_widgets/options/i18n/language.ts | 4 +++- src/public/translations/en/translation.json | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/public/app/widgets/type_widgets/options/i18n/language.ts b/src/public/app/widgets/type_widgets/options/i18n/language.ts index 10a1e5877..1b8d34132 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 = `
-

Languages

+

${t("content_language.title")}

+

${t("content_language.description")}

diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json index ebd6a734b..5dffe574b 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." } }