itizawa 6 лет назад
Родитель
Сommit
ee8a310665

+ 1 - 1
resource/locales/en-US/translation.json

@@ -635,7 +635,7 @@
     "notification_list": "List of Notification Settings",
     "add_notification": "Add New",
     "trigger_path": "Trigger Path",
-    "trigger_path_help": "(expression with %s is supported)",
+    "trigger_path_help": "(expression with <code>*</code> is supported)",
     "trigger_events": "Trigger Events",
     "notify_to": "Notify To",
     "back_to_list": "Go back to list",

+ 1 - 1
resource/locales/ja/translation.json

@@ -619,7 +619,7 @@
     "notification_list": "通知設定の一覧",
     "add_notification": "通知設定の追加",
     "trigger_path": "トリガーパス",
-    "trigger_path_help": "(%sが使用できます)",
+    "trigger_path_help": "(<code>*</code>が使用できます)",
     "trigger_events": "トリガーイベント",
     "notify_to": "通知先",
     "back_to_list": "通知設定一覧に戻る",

+ 2 - 1
src/client/js/components/Admin/Notification/GrobalNotification.jsx

@@ -27,7 +27,8 @@ class GrobalNotification extends React.Component {
           <thead>
             <tr>
               <th>ON/OFF</th>
-              <th>{t('notification_setting.trigger_path')} {t('notification_setting.trigger_path_help', '<code>*</code>')}</th>
+              {/* eslint-disable-next-line react/no-danger */}
+              <th>{t('notification_setting.trigger_path')} <span dangerouslySetInnerHTML={{ __html: t('notification_setting.trigger_path_help') }} /></th>
               <th>{t('notification_setting.trigger_events')}</th>
               <th>{t('notification_setting.notify_to')}</th>
               <th></th>