Skip to content

Commit

Permalink
Merge pull request #4154 from thematters/fix/copy-comment
Browse files Browse the repository at this point in the history
fix(copy): fix copy
  • Loading branch information
robertu7 authored Jan 23, 2024
2 parents aeaa616 + 5c82bf8 commit 6a70ae3
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 4 deletions.
8 changes: 8 additions & 0 deletions lang/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,10 @@
"9J0iCw": {
"defaultMessage": "Deleted user"
},
"9OIqBr": {
"defaultMessage": "Edit Comment",
"description": "src/components/Comment/DropdownActions/index.tsx"
},
"9UNFGm": {
"defaultMessage": "Transaction Password"
},
Expand Down Expand Up @@ -907,6 +911,10 @@
"LWE7oq": {
"defaultMessage": "Saving draft, are you sure you want to leave?"
},
"LYl9+i": {
"defaultMessage": "Edit",
"description": "src/components/Comment/DropdownActions/index.tsx"
},
"Lb0JsC": {
"defaultMessage": "You have blocked that user"
},
Expand Down
8 changes: 8 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,10 @@
"9J0iCw": {
"defaultMessage": "Deleted user"
},
"9OIqBr": {
"defaultMessage": "Edit Comment",
"description": "src/components/Comment/DropdownActions/index.tsx"
},
"9UNFGm": {
"defaultMessage": "Transaction Password"
},
Expand Down Expand Up @@ -907,6 +911,10 @@
"LWE7oq": {
"defaultMessage": "Saving draft, are you sure you want to leave?"
},
"LYl9+i": {
"defaultMessage": "Edit",
"description": "src/components/Comment/DropdownActions/index.tsx"
},
"Lb0JsC": {
"defaultMessage": "You have blocked that user"
},
Expand Down
8 changes: 8 additions & 0 deletions lang/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,10 @@
"9J0iCw": {
"defaultMessage": "已注销用户"
},
"9OIqBr": {
"defaultMessage": "编辑评论",
"description": "src/components/Comment/DropdownActions/index.tsx"
},
"9UNFGm": {
"defaultMessage": "交易密码"
},
Expand Down Expand Up @@ -907,6 +911,10 @@
"LWE7oq": {
"defaultMessage": "草稿保存中,确定要离开吗?"
},
"LYl9+i": {
"defaultMessage": "编辑",
"description": "src/components/Comment/DropdownActions/index.tsx"
},
"Lb0JsC": {
"defaultMessage": "你屏蔽了该用户"
},
Expand Down
8 changes: 8 additions & 0 deletions lang/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,10 @@
"9J0iCw": {
"defaultMessage": "已註銷用戶"
},
"9OIqBr": {
"defaultMessage": "編輯評論",
"description": "src/components/Comment/DropdownActions/index.tsx"
},
"9UNFGm": {
"defaultMessage": "交易密碼"
},
Expand Down Expand Up @@ -907,6 +911,10 @@
"LWE7oq": {
"defaultMessage": "草稿保存中,確定要離開嗎?"
},
"LYl9+i": {
"defaultMessage": "編輯",
"description": "src/components/Comment/DropdownActions/index.tsx"
},
"Lb0JsC": {
"defaultMessage": "你封鎖了該用戶"
},
Expand Down
3 changes: 0 additions & 3 deletions src/common/enums/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export const TEXT = {
edit: '編輯',
editArticle: '修訂作品',
editCircle: '編輯圍爐',
editComment: '編輯評論',
editTag: '編輯標籤',
email: '電子信箱',
emptySearchResults: '不好意思,什麼都沒搜到',
Expand Down Expand Up @@ -268,7 +267,6 @@ export const TEXT = {
edit: '编辑',
editArticle: '修订作品',
editCircle: '编辑围炉',
editComment: '编辑评论',
editTag: '编辑标签',
email: '邮箱',
emptySearchResults: '不好意思,什么都没搜到',
Expand Down Expand Up @@ -497,7 +495,6 @@ export const TEXT = {
edit: 'Edit',
editArticle: 'Edit',
editCircle: 'Edit',
editComment: 'Edit',
editTag: 'Edit',
email: 'Email',
emptySearchResults: 'Result not found',
Expand Down
14 changes: 13 additions & 1 deletion src/components/Comment/DropdownActions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,19 @@ const DropdownActions = (props: DropdownActionsProps) => {
type,
commentId: comment.id,
defaultContent: comment.content,
title: article ? 'editComment' : 'edit',
title: article ? (
<FormattedMessage
defaultMessage="Edit Comment"
id="9OIqBr"
description="src/components/Comment/DropdownActions/index.tsx"
/>
) : (
<FormattedMessage
defaultMessage="Edit"
id="LYl9+i"
description="src/components/Comment/DropdownActions/index.tsx"
/>
),
},
({ openDialog }) => {
return {
Expand Down

0 comments on commit 6a70ae3

Please sign in to comment.