Преглед изворни кода

add notice sentence in modal

yuken пре 3 година
родитељ
комит
42e08a181e

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

@@ -663,6 +663,7 @@
     },
     "by_path_modal": {
       "title": "Convert to new v5 compatible format",
+      "notice": "",
       "description": "Enter a path and all pages under that path will be converted to v5 compatible format.",
       "button_label": "Convert",
       "success": "Successfully requested conversion.",

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

@@ -663,6 +663,7 @@
     },
     "by_path_modal": {
       "title": "新しい v5 互換形式への変換",
+      "notice": "後で文言は考える",
       "description": "パスを入力することで、そのパスの配下のページを全て v5 互換形式に変換します",
       "button_label": "変換",
       "success": "正常に変換を開始しました",

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

@@ -950,6 +950,7 @@
     },
     "by_path_modal": {
       "title": "转换为新的v5兼容格式",
+      "notice": "",
       "description": "输入一个路径,该路径下的所有页面将被转换为v5兼容格式。",
       "button_label": "转换",
       "success": "成功地请求转换。",

+ 1 - 0
packages/app/src/components/PrivateLegacyPages.tsx

@@ -148,6 +148,7 @@ const ConvertByPathModal = React.memo((props: ConvertByPathModalProps): JSX.Elem
       </ModalHeader>
       <ModalBody>
         <p>{t('private_legacy_pages.by_path_modal.description')}</p>
+        <p className="text-danger">{ t('private_legacy_pages.by_path_modal.notice') }</p>
         <input type="text" className="form-control" placeholder="/" value={currentInput} onChange={e => setInput(e.target.value)} />
       </ModalBody>
       <ModalFooter>