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

add translation for resuming rename operation failure

yohei0125 3 лет назад
Родитель
Сommit
b61af99eae

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

@@ -1113,6 +1113,7 @@
     "footprints": "Footprints"
     "footprints": "Footprints"
   },
   },
   "page_operation":{
   "page_operation":{
-    "paths_recovered": "Paths recovered successfully"
+    "paths_recovered": "Paths recovered successfully",
+    "failed_resume_rename": "Failed to resume rename operation"
   }
   }
 }
 }

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

@@ -1106,6 +1106,7 @@
     "footprints": "足跡"
     "footprints": "足跡"
   },
   },
   "page_operation":{
   "page_operation":{
-    "paths_recovered": "パスを修復しました"
+    "paths_recovered": "パスを修復しました",
+    "failed_resume_rename": "パスの修復に失敗しました"
   }
   }
 }
 }

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

@@ -1116,6 +1116,7 @@
     "footprints": "脚印"
     "footprints": "脚印"
   },
   },
   "page_operation":{
   "page_operation":{
-    "paths_recovered": "成功恢复了页面路径"
+    "paths_recovered": "成功恢复了页面路径",
+    "failed_resume_rename": "恢复重命名操作失败"
   }
   }
 }
 }

+ 1 - 1
packages/app/src/components/Sidebar/PageTree/Item.tsx

@@ -385,7 +385,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
       toastSuccess(t('page_operation.paths_recovered'));
       toastSuccess(t('page_operation.paths_recovered'));
     }
     }
     catch (err) {
     catch (err) {
-      toastError(err);
+      toastError(t('page_operation.failed_resume_rename'));
     }
     }
     finally {
     finally {
       setTimeout(() => {
       setTimeout(() => {