From 1acf2f8b13aa1587ddcfd24bab343f68a971606e Mon Sep 17 00:00:00 2001 From: Zeng1998 <1129142694@qq.com> Date: Sat, 19 Nov 2022 10:33:52 +0800 Subject: [PATCH] chore: update i18 for settings (#490) --- web/src/components/SettingDialog.tsx | 2 +- web/src/components/Settings/SystemSection.tsx | 16 ++++++++-------- web/src/locales/en.json | 9 +++++++++ web/src/locales/vi.json | 9 +++++++++ web/src/locales/zh.json | 9 +++++++++ 5 files changed, 36 insertions(+), 9 deletions(-) diff --git a/web/src/components/SettingDialog.tsx b/web/src/components/SettingDialog.tsx index 393515c1..e9da0b2d 100644 --- a/web/src/components/SettingDialog.tsx +++ b/web/src/components/SettingDialog.tsx @@ -66,7 +66,7 @@ const SettingDialog: React.FC = (props: Props) => { onClick={() => handleSectionSelectorItemClick("system")} className={`section-item ${state.selectedSection === "system" ? "selected" : ""}`} > - 🧑‍🔧 System + 🧑‍🔧 {t("setting.system")} diff --git a/web/src/components/Settings/SystemSection.tsx b/web/src/components/Settings/SystemSection.tsx index 4140015b..fd8bd205 100644 --- a/web/src/components/Settings/SystemSection.tsx +++ b/web/src/components/Settings/SystemSection.tsx @@ -97,17 +97,17 @@ const SystemSection = () => {

{t("common.basic")}

- Database File Size: {formatBytes(state.dbSize)} + {t("setting.system-section.database-file-size")}: {formatBytes(state.dbSize)}

{t("sidebar.setting")}

- Additional style + {t("setting.system-section.additional-style")}