A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: revert unnecessary translation
genment1b52d2d7372a
diff --git a/ui/src/components/Comment/components/ActionBar/index.tsx b/ui/src/components/Comment/components/ActionBar/index.tsxindex 19dc5ca0..a801a6bb 100644--- a/ui/src/components/Comment/components/ActionBar/index.tsx+++ b/ui/src/components/Comment/components/ActionBar/index.tsx@@ -59,7 +59,7 @@ const ActionBar = ({index > 0 && 'ms-3',)}onClick={() => onAction(action)}>- {t(`btn_${action.action}`)}+ {action.name}</Button>);})}@@ -81,7 +81,7 @@ const ActionBar = ({variant="link"size="sm"onClick={() => onAction(action)}>- {t(`btn_${action.action}`)}+ {action.name}</Dropdown.Item>);})}diff --git a/ui/src/components/Operate/index.tsx b/ui/src/components/Operate/index.tsxindex 67661975..6d76af2a 100644--- a/ui/src/components/Operate/index.tsx+++ b/ui/src/components/Operate/index.tsx@@ -125,7 +125,7 @@ const Index: FC<IProps> = ({to={editUrl}className="link-secondary p-0 fs-14 me-3"style={{ lineHeight: '23px' }}>- {t(`btn_${item.action}`)}+ {item.name}</Link>);}@@ -135,7 +135,7 @@ const Index: FC<IProps> = ({variant="link"className="link-secondary p-0 fs-14 me-3"onClick={() => handleAction(item.action)}>- {t(`btn_${item.action}`)}+ {item.name}</Button>);})}diff --git a/ui/src/i18n/locales/en.json b/ui/src/i18n/locales/en.jsonindex a7eca186..a2513fb0 100644--- a/ui/src/i18n/locales/en.json+++ b/ui/src/i18n/locales/en.json@@ -297,7 +297,7 @@"btn_reply": "Reply","btn_edit": "Edit","btn_delete": "Delete",- "btn_report": "Flag",+ "btn_flag": "Flag","btn_save_edits": "Save edits","btn_cancel": "Cancel","show_more": "Show more comment",@@ -595,10 +595,6 @@},"delete": {"title": "Delete this post",- "btn_edit": "Edit",- "btn_close": "Close",- "btn_delete": "Delete",- "btn_report": "Flag","question": "We do not recommend <strong>deleting questions with answers</strong> because doing so deprives future readers of this knowledge.</p><p>Repeated deletion of answered questions can result in your account being blocked from asking. Are you sure you wish to delete?","answer_accepted": "<p>We do not recommend <strong>deleting accepted answer</strong> because doing so deprives future readers of this knowledge. </p> Repeated deletion of accepted answers can result in your account being blocked from answering. Are you sure you wish to delete?","other": "Are you sure you wish to delete?",diff --git a/ui/src/i18n/locales/zh_CN.json b/ui/src/i18n/locales/zh_CN.jsonindex 3d9da996..93fb3e70 100644--- a/ui/src/i18n/locales/zh_CN.json+++ b/ui/src/i18n/locales/zh_CN.json@@ -297,7 +297,7 @@"btn_reply": "回复","btn_edit": "编辑","btn_delete": "删除",- "btn_report": "举报",+ "btn_flag": "举报","btn_save_edits": "保存","btn_cancel": "取消","show_more": "显示更多评论",@@ -595,10 +595,6 @@},"delete": {"title": "删除",- "btn_edit": "编辑",- "btn_close": "关闭",- "btn_delete": "删除",- "btn_report": "举报","question": "我们不建议<strong>删除有回答的帖子</strong>。因为这样做会使得后来的读者无法从该问题中获得帮助。</p><p>如果删除过多有回答的帖子,你的账号将会被禁止提问。你确定要删除吗?","answer_accepted": "<p>我们不建议<strong>删除被采纳的回答</strong>。因为这样做会使得后来的读者无法从该回答中获得帮助。</p>如果删除过多被采纳的回答,你的账号将会被禁止回答任何提问。你确定要删除吗?","other": "你确定要删除?",