akira-s 5 лет назад
Родитель
Сommit
131213e9ca

+ 3 - 0
resource/locales/en-US/translation.json

@@ -685,5 +685,8 @@
     "Sign in error": "Login error",
     "Registration successful": "Registration successful",
     "Setup": "Setup"
+  },
+  "export_bulk": {
+    "failed_to_export": "Failed to export"
   }
 }

+ 3 - 0
resource/locales/ja/translation.json

@@ -674,5 +674,8 @@
     "Sign in error": "ログインエラー",
     "Registration successful": "登録完了",
     "Setup": "セットアップ"
+  },
+  "export_bulk": {
+    "failed_to_export": "ファイルのエクスポートに失敗しました"
   }
 }

+ 2 - 2
src/client/js/components/Page/PageShareManagement.jsx

@@ -30,11 +30,11 @@ const PageShareManagement = (props) => {
   async function getExportPageFile(type) {
     const pageId = pageContainer.state.pageId;
     try {
-      const res = await appContainer.apiv3Get('/pages/export', { pageId, type });
+      const res = await appContainer.apiv3Get('/pages/export', { pageId, type }); 
       return res;
     }
     catch (err) {
-      toastError(Error('Failed to export'));
+      toastError(Error(t('export_bulk.failed_to_export')));
     }
   }