Prechádzať zdrojové kódy

fix: edit properties dialog title is incorrect (#834)

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 2 týždňov pred
rodič
commit
b6411975df

+ 2 - 2
client/src/i18n/cn/dialog.ts

@@ -22,8 +22,8 @@ const dialogTrans = {
 
   createTitle: `在 "{{name}}" 上创建 {{type}}`,
   emptyTitle: `清空{{type}}的数据`,
-  editPropertyTitle: `编辑属性 {{type}}`,
-  resetPropertyTitle: `重置属性 {{type}}`,
+  editPropertyTitle: `编辑{{type}}属性`,
+  resetPropertyTitle: `重置{{type}}属性`,
 
   // info
   duplicateCollectionInfo:

+ 2 - 2
client/src/i18n/en/dialog.ts

@@ -20,8 +20,8 @@ const dialogTrans = {
 
   createTitle: `Create {{type}} on "{{name}}"`,
   emptyTitle: `Empty data for {{type}}`,
-  editPropertyTitle: `Edit property {{type}}`,
-  resetPropertyTitle: `Reset property {{type}}`,
+  editPropertyTitle: `Edit {{type}} property`,
+  resetPropertyTitle: `Reset {{type}} property`,
 
   // info
   duplicateCollectionInfo:

+ 1 - 1
client/src/pages/dialogs/EditPropertyDialog.tsx

@@ -108,7 +108,7 @@ const EditPropertyDialog: FC<EditPropertyProps> = props => {
 
   return (
     <DialogTemplate
-      title={dialogTrans('editPropertyTitle')}
+      title={dialogTrans('editPropertyTitle', { type: props.type })}
       handleClose={handleCloseDialog}
       children={
         <>