From f74ebc1942815ca44d3640703bd3bb66023a8943 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Fri, 13 Sep 2024 16:23:23 +0900 Subject: [PATCH 1/6] [Update] Config Page: Add Appearance Tab. Add UI Language section.(Functionally, too) --- locales/config.js | 2 +- src-ui/app/App.jsx | 16 ++++ .../setting_box/SettingBox.jsx | 4 +- .../setting_box/appearance/Appearance.jsx | 77 ++++++++++++++----- .../appearance/Appearance.module.scss | 61 +++++++++++++++ src-ui/logics/configs/useUiLanguage.js | 24 ++++++ src-ui/logics/useReceiveRoutes.js | 9 ++- src-ui/store.js | 12 ++- 8 files changed, 182 insertions(+), 23 deletions(-) create mode 100644 src-ui/app/config_page/setting_section/setting_box/appearance/Appearance.module.scss create mode 100644 src-ui/logics/configs/useUiLanguage.js diff --git a/locales/config.js b/locales/config.js index aca15b8a..0c422a21 100644 --- a/locales/config.js +++ b/locales/config.js @@ -11,7 +11,7 @@ const resources = { en: { translation: translation_en }, ja: { translation: translation_ja }, ko: { translation: translation_ko }, - zh_Hant: { translation: translation_zh_Hant }, + "zh-Hant": { translation: translation_zh_Hant }, }; i18n diff --git a/src-ui/app/App.jsx b/src-ui/app/App.jsx index c085683f..971a6cb4 100644 --- a/src-ui/app/App.jsx +++ b/src-ui/app/App.jsx @@ -10,6 +10,7 @@ export const App = () => { return (