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

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

@@ -11,6 +11,7 @@
   "PathRecovery": "Path recovery",
   "PathRecovery": "Path recovery",
   "Copy": "Copy",
   "Copy": "Copy",
   "preview": "Preview",
   "preview": "Preview",
+  "write": "Write",
   "desktop": "Desktop",
   "desktop": "Desktop",
   "phone": "Smartphone",
   "phone": "Smartphone",
   "tablet": "Tablet",
   "tablet": "Tablet",
@@ -330,6 +331,7 @@
   "page_comment": {
   "page_comment": {
     "comments": "Commments",
     "comments": "Commments",
     "comment": "Commment",
     "comment": "Commment",
+    "add_a_comment": "Add a comment",
     "display_the_page_when_posting_this_comment": "Display the page when posting this comment",
     "display_the_page_when_posting_this_comment": "Display the page when posting this comment",
     "no_user_found": "No user found"
     "no_user_found": "No user found"
   },
   },
@@ -531,7 +533,8 @@
   },
   },
   "slack_notification": {
   "slack_notification": {
     "popover_title": "Slack Notification",
     "popover_title": "Slack Notification",
-    "popover_desc": "Input channel name. You can notify multiple channels by entering a comma-separated list."
+    "popover_desc": "Input channel name. You can notify multiple channels by entering a comma-separated list.",
+    "input_channels": "Input channels"
   },
   },
   "search_result": {
   "search_result": {
     "title": "Search",
     "title": "Search",

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

@@ -11,6 +11,7 @@
   "PathRecovery": "パスを修復",
   "PathRecovery": "パスを修復",
   "Copy": "コピー",
   "Copy": "コピー",
   "preview": "プレビュー",
   "preview": "プレビュー",
+  "write": "内容",
   "desktop": "パソコン",
   "desktop": "パソコン",
   "phone": "スマホ",
   "phone": "スマホ",
   "tablet": "タブレット",
   "tablet": "タブレット",
@@ -363,6 +364,7 @@
   "page_comment": {
   "page_comment": {
     "comments": "コメント",
     "comments": "コメント",
     "comment": "コメント",
     "comment": "コメント",
+    "add_a_comment": "コメントを追加",
     "display_the_page_when_posting_this_comment": "投稿時のページを表示する",
     "display_the_page_when_posting_this_comment": "投稿時のページを表示する",
     "no_user_found": "ユーザー名が見つかりません"
     "no_user_found": "ユーザー名が見つかりません"
   },
   },
@@ -564,7 +566,8 @@
   },
   },
   "slack_notification": {
   "slack_notification": {
     "popover_title": "Slack 通知",
     "popover_title": "Slack 通知",
-    "popover_desc": "チャンネル名を入れてください。カンマ区切りのリストを入力することで複数のチャンネルに通知することができます。"
+    "popover_desc": "チャンネル名を入れてください。カンマ区切りのリストを入力することで複数のチャンネルに通知することができます。",
+    "input_channels": "チャンネル名"
   },
   },
   "search_result": {
   "search_result": {
     "title": "検索",
     "title": "検索",

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

@@ -11,6 +11,7 @@
   "PathRecovery": "路径恢复",
   "PathRecovery": "路径恢复",
   "Copy": "复制",
   "Copy": "复制",
   "preview": "预览",
   "preview": "预览",
+  "write": "内容",
   "desktop": "电脑",
   "desktop": "电脑",
   "phone": "手机",
   "phone": "手机",
   "tablet": "平板",
   "tablet": "平板",
@@ -320,6 +321,7 @@
   "page_comment": {
   "page_comment": {
     "comments": "评论",
     "comments": "评论",
     "comment": "评论",
     "comment": "评论",
+    "add_a_comment": "Add a comment",
     "display_the_page_when_posting_this_comment": "Display the page when posting this comment",
     "display_the_page_when_posting_this_comment": "Display the page when posting this comment",
     "no_user_found": "未找到用户名"
     "no_user_found": "未找到用户名"
   },
   },
@@ -518,7 +520,8 @@
   },
   },
   "slack_notification": {
   "slack_notification": {
     "popover_title": "Slack Notification",
     "popover_title": "Slack Notification",
-    "popover_desc": "Input channel name. You can notify multiple channels by entering a comma-separated list."
+    "popover_desc": "Input channel name. You can notify multiple channels by entering a comma-separated list.",
+    "input_channels": "Input channels"
   },
   },
   "share_links": {
   "share_links": {
     "Shere this page link to public": "Shere this page link to public",
     "Shere this page link to public": "Shere this page link to public",

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

@@ -304,7 +304,7 @@ export const CommentEditor = (props: CommentEditorProps): JSX.Element => {
           <div className="d-flex justify-content-between align-items-center mb-2">
           <div className="d-flex justify-content-between align-items-center mb-2">
             <div className="d-flex">
             <div className="d-flex">
               <UserPicture user={currentUser} noLink noTooltip />
               <UserPicture user={currentUser} noLink noTooltip />
-              <p className="ms-2 mb-0">Add a comment</p>
+              <p className="ms-2 mb-0">{t('page_comment.add_a_comment')}</p>
             </div>
             </div>
             <SwitchingButtonGroup showPreview={showPreview} onSelected={handleSelect} />
             <SwitchingButtonGroup showPreview={showPreview} onSelected={handleSelect} />
           </div>
           </div>

+ 1 - 1
apps/app/src/components/PageComment/SwitchingButtonGroup.module.scss

@@ -9,7 +9,7 @@
     height: 38px;
     height: 38px;
 
 
     @include bs.media-breakpoint-up(sm) {
     @include bs.media-breakpoint-up(sm) {
-      width: 90px;
+      width: auto;
       height: 30px;
       height: 30px;
     }
     }
   }
   }

+ 2 - 2
apps/app/src/components/PageComment/SwitchingButtonGroup.tsx

@@ -57,7 +57,7 @@ export const SwitchingButtonGroup = (props: Props): JSX.Element => {
         onClick={() => onSelected?.(true)}
         onClick={() => onSelected?.(true)}
       >
       >
         <span className="material-symbols-outlined me-0">play_arrow</span>
         <span className="material-symbols-outlined me-0">play_arrow</span>
-        <span className="d-none d-sm-inline">{t('Preview')}</span>
+        <span className="d-none d-sm-inline">{t('preview')}</span>
       </SwitchingButton>
       </SwitchingButton>
       <SwitchingButton
       <SwitchingButton
         active={!showPreview}
         active={!showPreview}
@@ -65,7 +65,7 @@ export const SwitchingButtonGroup = (props: Props): JSX.Element => {
         onClick={() => onSelected?.(false)}
         onClick={() => onSelected?.(false)}
       >
       >
         <span className="material-symbols-outlined me-1">edit_square</span>
         <span className="material-symbols-outlined me-1">edit_square</span>
-        <span className="d-none d-sm-inline">{t('Write')}</span>
+        <span className="d-none d-sm-inline">{t('write')}</span>
       </SwitchingButton>
       </SwitchingButton>
     </div>
     </div>
   );
   );

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

@@ -59,7 +59,7 @@ export const SlackNotification: FC<SlackNotificationProps> = ({
         id={idForSlackPopover}
         id={idForSlackPopover}
         type="text"
         type="text"
         value={slackChannels}
         value={slackChannels}
-        placeholder="Input channels"
+        placeholder={`${t('slack_notification.input_channels')}`}
         onChange={updateSlackChannelsHandler}
         onChange={updateSlackChannelsHandler}
       />
       />
       <UncontrolledPopover trigger="focus" placement="top" target={idForSlackPopover}>
       <UncontrolledPopover trigger="focus" placement="top" target={idForSlackPopover}>