From febd1d5ab3c55e9ee4683955a61660c0d264e3f7 Mon Sep 17 00:00:00 2001 From: Nriver <6752679+Nriver@users.noreply.github.com> Date: Thu, 8 Aug 2024 11:02:04 +0800 Subject: [PATCH] add translation for font option --- .../type_widgets/options/appearance/fonts.js | 37 ++++++++++--------- src/public/translations/cn/translation.json | 14 +++++++ src/public/translations/en/translation.json | 14 +++++++ 3 files changed, 47 insertions(+), 18 deletions(-) diff --git a/src/public/app/widgets/type_widgets/options/appearance/fonts.js b/src/public/app/widgets/type_widgets/options/appearance/fonts.js index 059c98740..3204f045d 100644 --- a/src/public/app/widgets/type_widgets/options/appearance/fonts.js +++ b/src/public/app/widgets/type_widgets/options/appearance/fonts.js @@ -1,8 +1,9 @@ import OptionsWidget from "../options_widget.js"; import utils from "../../../../services/utils.js"; +import { t } from "../../../../services/i18n.js"; const FONT_FAMILIES = [ - { value: "theme", label: "Theme defined" }, + { value: "theme", label: t("fonts.theme_defined") }, { value: "serif", label: "Serif" }, { value: "sans-serif", label: "Sans Serif" }, { value: "monospace", label: "Monospace" }, @@ -29,18 +30,18 @@ const FONT_FAMILIES = [ const TPL = `