jam411 3 лет назад
Родитель
Сommit
e2d5e466c4

+ 6 - 0
packages/app/public/static/locales/en_US/admin.json

@@ -79,6 +79,12 @@
       "restricted": "Restricted (Requires approval by administrators)",
       "closed": "Closed (Invitation Only)"
     },
+    "share_link_management": "Share Link Management",
+    "delete_all_share_links":"Delete all share links",
+    "Share Link": "Share Link",
+    "Page Path": "Page Path",
+    "expire": "Expiration",
+    "description": "Description",
     "share_link_rights": "Share link rights",
     "enable_link_sharing": "Enable link sharing",
     "all_share_links": "All share links",

+ 6 - 0
packages/app/public/static/locales/ja_JP/admin.json

@@ -86,6 +86,12 @@
       "restricted": "制限 (登録完了には管理者の承認が必要)",
       "closed": "非公開 (登録には管理者による招待が必要)"
     },
+    "share_link_management": "共有リンク管理",
+    "delete_all_share_links":"全ての共有リンクを削除します",
+    "Share Link": "共有用リンク",
+    "Page Path": "ページパス",
+    "expire": "有効期限",
+    "description": "概要",
     "share_link_rights": "シェアリンクの権限",
     "enable_link_sharing": "リンクのシェアを許可",
     "all_share_links": "全てのシェアリンク",

+ 6 - 0
packages/app/public/static/locales/zh_CN/admin.json

@@ -88,6 +88,12 @@
 			"restricted": "受限(需要管理员批准)",
 			"closed": "已关闭(仅限邀请)"
 		},
+    "share_link_management": "Share Link Management",
+    "delete_all_share_links":"Delete all share links",
+    "Share Link": "Share Link",
+    "Page Path": "Page Path",
+    "expire": "Expiration",
+    "description": "Description",
     "share_link_rights": "分享链接权",
     "enable_link_sharing": "启用链接共享",
     "all_share_links": "所有共享链接",

+ 2 - 2
packages/app/src/components/Admin/Security/ShareLinkSetting.tsx

@@ -110,9 +110,9 @@ const ShareLinkSetting = (props: ShareLinkSettingProps) => {
           type="button"
           onClick={() => setIsDeleteConfirmModalShown(true)}
         >
-          {t('share_links.delete_all_share_links')}
+          {t('security_settings.delete_all_share_links')}
         </button>
-        <h2 className="alert-anchor border-bottom">{t('share_links.share_link_management')}</h2>
+        <h2 className="alert-anchor border-bottom">{t('security_settings.share_link_management')}</h2>
       </div>
       <h4>{t('security_settings.share_link_rights')}</h4>
       <div className="row mb-5">

+ 2 - 1
packages/app/src/components/Navbar/AuthorInfo.tsx

@@ -1,8 +1,9 @@
 import React from 'react';
-import { format } from 'date-fns';
+
 import { pagePathUtils } from '@growi/core';
 import type { IUser } from '@growi/core';
 import { UserPicture } from '@growi/ui';
+import { format } from 'date-fns';
 import Link from 'next/link';
 
 export type AuthorInfoProps = {

+ 1 - 1
packages/app/src/components/Navbar/GrowiContextualSubNavigation.tsx

@@ -36,10 +36,10 @@ import PresentationIcon from '../Icons/PresentationIcon';
 import ShareLinkIcon from '../Icons/ShareLinkIcon';
 import { Skelton } from '../Skelton';
 
+import { AuthorInfoProps } from './AuthorInfo';
 import { GrowiSubNavigation } from './GrowiSubNavigation';
 import { SubNavButtonsProps } from './SubNavButtons';
 
-import { AuthorInfoProps } from './AuthorInfo';
 import AuthorInfoStyles from './AuthorInfo.module.scss';
 import PageEditorModeManagerStyles from './PageEditorModeManager.module.scss';
 

+ 0 - 1
packages/app/src/components/PageContentFooter.tsx

@@ -6,7 +6,6 @@ import dynamic from 'next/dynamic';
 import { useSWRxCurrentPage } from '~/stores/page';
 
 import { AuthorInfoProps } from './Navbar/AuthorInfo';
-
 import { Skelton } from './Skelton';
 
 import styles from './PageContentFooter.module.scss';

+ 5 - 5
packages/app/src/components/ShareLink/ShareLinkList.tsx

@@ -69,7 +69,7 @@ type Props = {
 
 const ShareLinkList = (props: Props): JSX.Element => {
 
-  const { t } = useTranslation();
+  const { t } = useTranslation('admin');
 
   function renderShareLinks() {
     return (
@@ -96,10 +96,10 @@ const ShareLinkList = (props: Props): JSX.Element => {
       <table className="table table-bordered">
         <thead>
           <tr>
-            <th>{t('share_links.Share Link')}</th>
-            {props.isAdmin && <th>{t('share_links.Page Path')}</th>}
-            <th>{t('share_links.expire')}</th>
-            <th>{t('share_links.description')}</th>
+            <th>{t('security_settings.Share Link')}</th>
+            {props.isAdmin && <th>{t('security_settings.Page Path')}</th>}
+            <th>{t('security_settings.expire')}</th>
+            <th>{t('security_settings.description')}</th>
             <th></th>
           </tr>
         </thead>