Просмотр исходного кода

Revert "feat: i18n to UISettings component"

This reverts commit 0ced3b22629d1b3e5ba7cbb3eec052aa12e3defc.
yukendev 2 лет назад
Родитель
Сommit
f225150dc1

+ 0 - 7
apps/app/public/static/locales/en_US/translation.json

@@ -249,13 +249,6 @@
       "page_create": "Subscribe to the page when you create it."
     }
   },
-  "ui_settings": {
-    "ui_settings": "UI Settings",
-    "wide_view": {
-      "enable_wide_view": "Enable wide view",
-      "description": "When Wide View is enabled, the in-page content expands to the full width of the page."
-    }
-  },
   "editor_settings": {
     "editor_settings": "Editor Settings"
   },

+ 0 - 7
apps/app/public/static/locales/ja_JP/translation.json

@@ -250,13 +250,6 @@
       "page_create": "ページを作成した時にそのページをサブスクライブします。"
     }
   },
-  "ui_settings": {
-    "ui_settings": "UI設定",
-    "wide_view": {
-      "enable_wide_view": "ワイドビューを有効にする",
-      "description": "ワイドビューを有効にすると、ページ内コンテンツがページの横幅いっぱいに広がります。"
-    }
-  },
   "editor_settings": {
     "editor_settings": "エディター設定",
     "common_settings": {

+ 0 - 7
apps/app/public/static/locales/zh_CN/translation.json

@@ -240,13 +240,6 @@
       "page_create": "创建页面时订阅页面。"
     }
   },
-  "ui_settings": {
-    "ui_settings": "用户界面设置",
-    "wide_view": {
-      "enable_wide_view": "启用宽视角",
-      "description": "启用 宽视图 后,页面内的内容会扩展到页面的整个宽度"
-    }
-  },
   "editor_settings": {
     "editor_settings": "编辑器设置"
   },

+ 3 - 3
apps/app/src/components/Me/UISettings.tsx

@@ -5,16 +5,16 @@ export const UISettings = (): JSX.Element => {
   const { t } = useTranslation();
   return (
     <>
-      <h2 className="border-bottom mb-4">{t('ui_settings.ui_settings')}</h2>
+      <h2 className="border-bottom mb-4">UI設定</h2>
 
       <div className="row justify-content-center">
         <div className="col-md-6">
           <div className="form-check form-switch form-check-primary">
             <input type="checkbox" className="form-check-input" id="isQuestionnaireEnabled" onChange={() => {}} />
             <label className="form-label form-check-label" htmlFor="isQuestionnaireEnabled">
-              {t('ui_settings.wide_view.enable_wide_view')}
+              ワイドビューを有効にする
             </label>
-            <p className="form-text text-muted small">{t('ui_settings.wide_view.description')}</p>
+            <p className="form-text text-muted small">ワイドビューを有効にすると、ページ内コンテンツがページの横幅いっぱいに広がります</p>
           </div>
         </div>
       </div>