Parcourir la source

Add translation

satof3 il y a 1 an
Parent
commit
50ba9bcb99

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

@@ -184,7 +184,9 @@
   },
   "author_info": {
     "created_at": "Created at",
-    "last_revision_posted_at": "Last revision posted at"
+    "created_by": "Created by",
+    "last_revision_posted_at": "Last revision posted at",
+    "updated_by": "Updated by"
   },
   "installer": {
     "tab": "Create account",

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

@@ -185,7 +185,9 @@
   },
   "author_info": {
     "created_at": "Crée le",
-    "last_revision_posted_at": "Dernière révision le"
+    "created_by": "Créé par",
+    "last_revision_posted_at": "Dernière révision le",
+    "updated_by": "Mis à jour par"
   },
   "installer": {
     "tab": "Créer compte",

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

@@ -185,7 +185,9 @@
   },
   "author_info": {
     "created_at": "作成日",
-    "last_revision_posted_at": "最終更新日"
+    "created_by": "作成者:",
+    "last_revision_posted_at": "最終更新日",
+    "updated_by": "最終更新者:"
   },
   "installer": {
     "tab": "アカウント作成",

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

@@ -189,10 +189,12 @@
   "custom_navigation": {
     "no_pages_under_this_page": "There are no pages under this page."
   },
-  "author_info": {
-    "created_at": "Created at",
-    "last_revision_posted_at": "Last revision posted at"
-  },
+"author_info": {
+  "created_at": "创建日期",
+  "created_by": "创建者:",
+  "last_revision_posted_at": "最后更新日期",
+  "updated_by": "更新者:"
+},
   "installer": {
     "tab": "创建账户",
     "title": "安装",

+ 5 - 5
apps/app/src/client/components/AuthorInfo/AuthorInfo.tsx

@@ -40,8 +40,8 @@ export const AuthorInfo = (props: AuthorInfoProps): JSX.Element => {
   const formatType = 'yyyy/MM/dd HH:mm';
 
   const infoLabelForPageSide = mode === 'create'
-    ? t('author_info.created_at')
-    : t('author_info.last_revision_posted_at');
+    ? t('author_info.created_by')
+    : t('author_info.updated_by');
   const nullinfoLabelForFooter = mode === 'create'
     ? 'Created by'
     : 'Updated by';
@@ -76,12 +76,12 @@ export const AuthorInfo = (props: AuthorInfoProps): JSX.Element => {
   };
 
   return (
-    <div className={`grw-author-info ${styles['grw-author-info']} d-flex align-items-center`}>
+    <div className={`grw-author-info ${styles['grw-author-info']} d-flex align-items-center mb-2 ms-3`}>
       <div className="me-2">
         <UserPicture user={user} size="sm" />
       </div>
-      <div className="mb-2">
-        <div className="text-secondary mb-1">{infoLabelForPageSide} by {userLabel}</div>
+      <div>
+        <div className="text-secondary mb-1">{infoLabelForPageSide} {userLabel}</div>
         <div className="text-secondary text-date" data-vrt-blackout-datetime>
           {renderParsedDate()}
         </div>