From e68d070320299e83d0484f9d201da4eefee631ed Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 27 Oct 2024 21:27:35 +0200 Subject: [PATCH] client: Set up localization for syntax highlighting section --- .../type_widgets/options/appearance/highlighting.js | 7 ++++--- src/public/translations/en/translation.json | 5 +++++ src/public/translations/ro/translation.json | 8 ++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/public/app/widgets/type_widgets/options/appearance/highlighting.js b/src/public/app/widgets/type_widgets/options/appearance/highlighting.js index 395b1279b..07cd1412e 100644 --- a/src/public/app/widgets/type_widgets/options/appearance/highlighting.js +++ b/src/public/app/widgets/type_widgets/options/appearance/highlighting.js @@ -1,3 +1,4 @@ +import { t } from "../../../../services/i18n.js"; import library_loader from "../../../../services/library_loader.js"; import server from "../../../../services/server.js"; import OptionsWidget from "../options_widget.js"; @@ -13,13 +14,13 @@ function test(name) { const TPL = `
-

Code Syntax Highlighting for Text Notes

+

${t("highlighting.title")}

-

Controls the syntax highlighting for code blocks inside text notes, code notes will not be affected.

+

${t("highlighting.description")}

- +
diff --git a/src/public/translations/en/translation.json b/src/public/translations/en/translation.json index 0d7985f1d..9775f5482 100644 --- a/src/public/translations/en/translation.json +++ b/src/public/translations/en/translation.json @@ -1500,5 +1500,10 @@ }, "editable-text": { "auto-detect-language": "Auto-detected" + }, + "highlighting": { + "title": "Code Syntax Highlighting for Text Notes", + "description": "Controls the syntax highlighting for code blocks inside text notes, code notes will not be affected.", + "color-scheme": "Color Scheme" } } diff --git a/src/public/translations/ro/translation.json b/src/public/translations/ro/translation.json index 69e7ea8cc..c3c48c411 100644 --- a/src/public/translations/ro/translation.json +++ b/src/public/translations/ro/translation.json @@ -1497,5 +1497,13 @@ "move-to-available-launchers": "Mută în Lansatoare disponibile", "move-to-visible-launchers": "Mută în Lansatoare vizibile", "reset": "Resetează" + }, + "editable-text": { + "auto-detect-language": "Automat" + }, + "highlighting": { + "color-scheme": "Temă de culori", + "title": "Evidențiere de sintaxă pentru notițele de tip text", + "description": "Controlează evidențierea de sintaxă pentru blocurile de cod în interiorul notițelor text, notițele de tip cod nu vor fi afectate de aceste setări." } }