Shun Miyazawa 4 лет назад
Родитель
Сommit
6553b2f402

+ 5 - 1
packages/app/resource/locales/en_US/translation.json

@@ -256,7 +256,11 @@
     }
   },
   "in_app_notification_settings": {
-    "in_app_notification_settings": "InAppNotification Settings"
+    "in_app_notification_settings": "InAppNotification Settings",
+    "subscribe_settings": "Settings to automatically subscribe (Receive notifications) to pages",
+    "subscribe_rules": {
+      "page_create": "Subscribe to the page when you create it."
+    }
   },
   "copy_to_clipboard": {
     "Copy to clipboard": "Copy to clipboard",

+ 5 - 1
packages/app/resource/locales/ja_JP/translation.json

@@ -259,7 +259,11 @@
     }
   },
   "in_app_notification_settings": {
-    "in_app_notification_settings": "アプリ内通知設定"
+    "in_app_notification_settings": "アプリ内通知設定",
+    "subscribe_settings": "自動でページをサブスクライブする(通知を受け取る)設定",
+    "subscribe_rules": {
+      "page_create": "ページを作成した時にそのページをサブスクライブします。"
+    }
   },
   "copy_to_clipboard": {
     "Copy to clipboard": "クリップボードにコピー",

+ 5 - 1
packages/app/resource/locales/zh_CN/translation.json

@@ -238,7 +238,11 @@
 		}
 	},
   "in_app_notification_settings": {
-    "in_app_notification_settings": "在应用程序通知设置"
+    "in_app_notification_settings": "在应用程序通知设置",
+    "subscribe_settings": "自动订阅(接收通知)页面的设置",
+    "subscribe_rules": {
+      "page_create": "创建页面时订阅页面。"
+    }
   },
 	"copy_to_clipboard": {
 		"Copy to clipboard": "复制到剪贴板",

+ 5 - 2
packages/app/src/components/Me/InAppNotificationSettings.tsx

@@ -19,7 +19,7 @@ type SubscribeRule = {
 const defaultSubscribeRulesMenuItems = [
   {
     name: 'PAGE_CREATE',
-    description: 'ページを作成したときに自動的にサブスクライブします。',
+    description: 'in_app_notification_settings.subscribe_rules.page_create',
   },
 ];
 
@@ -77,7 +77,7 @@ const InAppNotificationSettings: FC<Props> = (props: Props) => {
 
   return (
     <>
-      <h2 className="border-bottom my-4">{t('in_app_notification_settings.in_app_notification_settings')}</h2>
+      <h2 className="border-bottom my-4">{t('in_app_notification_settings.subscribe_settings')}</h2>
 
       <div className="form-group row">
         <div className="offset-md-3 col-md-6 text-left">
@@ -96,6 +96,9 @@ const InAppNotificationSettings: FC<Props> = (props: Props) => {
               <label className="custom-control-label" htmlFor={rule.name}>
                 <strong>{rule.name}</strong>
               </label>
+              <p className="form-text text-muted small">
+                {t(rule.description)}
+              </p>
             </div>
           ))}
         </div>