satof3 2 лет назад
Родитель
Сommit
db6fd9f394

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

@@ -14,8 +14,6 @@
   "desktop": "Desktop",
   "phone": "Smartphone",
   "tablet": "Tablet",
-  "comments": "Commments",
-  "comment": "Commment",
   "Click to copy": "Click to copy",
   "Rename": "Rename",
   "Move/Rename": "Move/Rename",
@@ -330,6 +328,8 @@
     "changes_not_saved": "Changes you made may not be saved. Are you sure you want to move?"
   },
   "page_comment": {
+    "comments": "Commments",
+    "comment": "Commment",
     "display_the_page_when_posting_this_comment": "Display the page when posting this comment",
     "no_user_found": "No user found"
   },

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

@@ -14,8 +14,6 @@
   "desktop": "パソコン",
   "phone": "スマホ",
   "tablet": "タブレット",
-  "comments": "コメント",
-  "comment": "コメント",
   "Click to copy": "クリックでコピー",
   "Rename": "名前変更",
   "Move/Rename": "移動/名前変更",
@@ -363,6 +361,8 @@
     "changes_not_saved": "変更が保存されていない可能性があります。本当に移動しますか?"
   },
   "page_comment": {
+    "comments": "コメント",
+    "comment": "コメント",
     "display_the_page_when_posting_this_comment": "投稿時のページを表示する",
     "no_user_found": "ユーザー名が見つかりません"
   },

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

@@ -14,8 +14,6 @@
   "desktop": "电脑",
   "phone": "手机",
   "tablet": "平板",
-  "comments": "评论",
-  "comment": "评论",
   "Login": "登录",
   "Click to copy": "点击复制",
   "Rename": "重命名",
@@ -320,6 +318,8 @@
     "changes_not_saved": "您所做的更改可能不会保存。你真的想继续前进吗?"
   },
   "page_comment": {
+    "comments": "评论",
+    "comment": "评论",
     "display_the_page_when_posting_this_comment": "Display the page when posting this comment",
     "no_user_found": "未找到用户名"
   },

+ 1 - 1
apps/app/src/components/Comments.tsx

@@ -74,7 +74,7 @@ export const Comments = (props: CommentsProps): JSX.Element => {
 
   return (
     <div className={`${styles['page-comment-styles']} page-comments-row mt-5 py-4 border-top d-edit-none d-print-none`}>
-      <h4 className="mb-3">{t('comments')}</h4>
+      <h4 className="mb-3">{t('page_comment.comments')}</h4>
       <div id="page-comments-list" className="page-comments-list" ref={pageCommentParentRef}>
         <PageComment
           pageId={pageId}

+ 1 - 1
apps/app/src/components/PageComment/CommentEditor.tsx

@@ -303,7 +303,7 @@ export const CommentEditor = (props: CommentEditorProps): JSX.Element => {
         className="btn btn-primary"
         onClick={postCommentHandler}
       >
-        {t('comment')}
+        {t('page_comment.comment')}
       </button>
     );