Shun Miyazawa 1 год назад
Родитель
Сommit
513980e470

+ 1 - 0
apps/app/public/static/locales/en_US/translation.json

@@ -853,6 +853,7 @@
   },
   "sync-latest-reevision-body": {
     "confirm": "Delete the draft data being entered into the editor and synchronize the latest text. Are you sure you want to run it?",
+    "alert": "The latest text may not have been synchronized. Please reload and check again.",
     "success-toaster": "Latest text synchronized",
     "error-toaster": "Synchronization of the latest text failed"
   }

+ 1 - 0
apps/app/public/static/locales/fr_FR/translation.json

@@ -844,6 +844,7 @@
   },
   "sync-latest-reevision-body": {
     "confirm": "Delete the draft data being entered into the editor and synchronize the latest text. Are you sure you want to run it?",
+    "alert": "Il se peut que le texte le plus récent n'ait pas été synchronisé. Veuillez recharger et vérifier à nouveau.",
     "success-toaster": "Dernier texte synchronisé",
     "error-toaster": "La synchronisation du dernier texte a échoué"
   }

+ 1 - 0
apps/app/public/static/locales/ja_JP/translation.json

@@ -886,6 +886,7 @@
   },
   "sync-latest-reevision-body": {
     "confirm": "エディターに入力中のドラフトデータを削除して最新の本文を同期します。実行しますか?",
+    "alert": "最新の本文が同期されていない可能性があります。リロードして再度ご確認ください。",
     "success-toaster": "最新の本文を同期しました",
     "error-toaster": "最新の本文の同期に失敗しました"
   }

+ 1 - 0
apps/app/public/static/locales/zh_CN/translation.json

@@ -856,6 +856,7 @@
   },
   "sync-latest-reevision-body": {
     "confirm": "删除输入编辑器的草稿数据,同步最新文本。 您真的想运行它吗?",
+    "alert": "最新文本可能尚未同步。 请重新加载并再次检查。",
     "success-toaster": "同步最新文本",
     "error-toaster": "同步最新文本失败"
   }

+ 1 - 2
apps/app/src/client/components/Navbar/GrowiContextualSubNavigation.tsx

@@ -90,9 +90,8 @@ const PageOperationMenuItems = (props: PageOperationMenuItemsProps): JSX.Element
         const res = await syncLatestRevisionBody(pageId, editingMarkdownLength);
 
         if (res?.isYjsDataBroken) {
-          // TODO: i18n
           // eslint-disable-next-line no-alert
-          window.alert('Please reload the page');
+          window.alert(t('sync-latest-reevision-body.alert'));
           return;
         }