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.
feat: add zh_CN translation for frontend
genment9c3b778b26de
diff --git a/ui/src/components/Comment/components/ActionBar/index.tsx b/ui/src/components/Comment/components/ActionBar/index.tsxindex a801a6bb..19dc5ca0 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)}>- {action.name}+ {t(`btn_${action.action}`)}</Button>);})}@@ -81,7 +81,7 @@ const ActionBar = ({variant="link"size="sm"onClick={() => onAction(action)}>- {action.name}+ {t(`btn_${action.action}`)}</Dropdown.Item>);})}diff --git a/ui/src/components/Comment/components/Reply/index.tsx b/ui/src/components/Comment/components/Reply/index.tsxindex dcbf53bb..931a8909 100644--- a/ui/src/components/Comment/components/Reply/index.tsx+++ b/ui/src/components/Comment/components/Reply/index.tsx@@ -19,7 +19,9 @@ const Form = ({ userName, onSendReply, onCancel, mode }) => {return (<div className="mb-2">- <div className="fs-14 mb-2">Reply to {userName}</div>+ <div className="fs-14 mb-2">+ {t('reply_to')} {userName}+ </div><div className="d-flex mb-1 align-items-start flex-column flex-md-row"><div><Mentionsdiff --git a/ui/src/components/Operate/index.tsx b/ui/src/components/Operate/index.tsxindex 6d76af2a..67661975 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' }}>- {item.name}+ {t(`btn_${item.action}`)}</Link>);}@@ -135,7 +135,7 @@ const Index: FC<IProps> = ({variant="link"className="link-secondary p-0 fs-14 me-3"onClick={() => handleAction(item.action)}>- {item.name}+ {t(`btn_${item.action}`)}</Button>);})}diff --git a/ui/src/i18n/locales/en.json b/ui/src/i18n/locales/en.jsonindex 81e34926..a7eca186 100644--- a/ui/src/i18n/locales/en.json+++ b/ui/src/i18n/locales/en.json@@ -250,7 +250,7 @@"synonyms_text": "The following tags will be remapped to","delete": {"title": "Delete this tag",- "content": "<p>We do not allowed deleting tag with posts.</p><p>Please remove the python tag from the posts first.</p>",+ "content": "<p>We do not allowed deleting tag with posts.</p><p>Please remove this tag from the posts first.</p>","content2": "Are you sure you wish to delete?","close": "Close"}@@ -297,7 +297,7 @@"btn_reply": "Reply","btn_edit": "Edit","btn_delete": "Delete",- "btn_flag": "Flag",+ "btn_report": "Flag","btn_save_edits": "Save edits","btn_cancel": "Cancel","show_more": "Show more comment",@@ -572,6 +572,8 @@"update": "Modified","edit": "edited","Views": "Viewed",+ "Follow": "Follow",+ "Following": "Following","answered": "answered","closed_in": "Closed in","show_exist": "Show existing question.",@@ -593,6 +595,10 @@},"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 ddfc6073..cfddd79d 100644--- a/ui/src/i18n/locales/zh_CN.json+++ b/ui/src/i18n/locales/zh_CN.json@@ -1,45 +1,440 @@{+ "how_to_format": {+ "title": "如何设定文本格式",+ "description": "<ul class=\"mb-0\"><li><p class=\"mb-2\">添加链接:</p><pre class=\"mb-2\"><code><https://url.com><br/><br/>[标题](https://url.com)</code></pre></li><li><p class=\"mb-2\">段落之间使用空行分隔</p></li><li><p class=\"mb-2\"><em>_斜体_</em> 或者 **<strong>粗体</strong>**</p></li><li><p class=\"mb-2\">使用 4 个空格缩进代码</p></li><li><p class=\"mb-2\">在行首添加<code>></code>表示引用</p></li><li><p class=\"mb-2\">反引号进行转义 <code>`像 _这样_`</code></p></li><li><p class=\"mb-2\">使用<code>```</code>创建代码块</p><pre class=\"mb-0\"><code>```<br/>// 这是代码<br/>```</code></pre></li></ul>"+ },+ "pagination": {+ "prev": "上一页",+ "next": "下一页"+ },+ "page_title": {+ "question": "问题",+ "questions": "问题",+ "tag": "标签",+ "tags": "标签",+ "tag_wiki": "标签 wiki",+ "edit_tag": "编辑标签",+ "ask_a_question": "提问题",+ "edit_question": "编辑问题",+ "edit_answer": "编辑回答",+ "search": "搜索",+ "posts_containing": "包含",+ "settings": "设定",+ "notifications": "通知",+ "login": "登录",+ "sign_up": "注册",+ "account_recovery": "账号恢复",+ "account_activation": "账号激活",+ "confirm_email": "确认电子邮件",+ "account_suspended": "账号已封禁",+ "admin": "后台管理"+ },+ "notifications": {+ "title": "通知",+ "inbox": "收件箱",+ "achievement": "成就",+ "all_read": "全部标记为已读",+ "show_more": "显示更多"+ },+ "suspended": {+ "title": "账号已封禁",+ "until_time": "你的账号被封禁至{{ time }}。",+ "forever": "你的账号已被永久封禁。",+ "end": "违反了我们的社区准则。"+ },+ "editor": {+ "blockquote": {+ "text": "引用"+ },+ "bold": {+ "text": "粗体"+ },+ "chart": {+ "text": "图表",+ "flow_chart": "流程图",+ "sequence_diagram": "时序图",+ "class_diagram": "类图",+ "state_diagram": "状态图",+ "entity_relationship_diagram": "ER 图",+ "user_defined_diagram": "User defined diagram",+ "gantt_chart": "甘特图",+ "pie_chart": "饼图"+ },+ "code": {+ "text": "代码块",+ "add_code": "添加代码块",+ "form": {+ "fields": {+ "code": {+ "label": "代码块",+ "msg": {+ "empty": "代码块不能为空"+ }+ },+ "language": {+ "label": "语言 (可选)",+ "placeholder": "自动识别"+ }+ }+ },+ "btn_cancel": "取消",+ "btn_confirm": "添加"+ },+ "formula": {+ "text": "公式",+ "options": {+ "inline": "行内公式",+ "block": "公式块"+ }+ },+ "heading": {+ "text": "标题",+ "options": {+ "h1": "标题 1",+ "h2": "标题 2",+ "h3": "标题 3",+ "h4": "标题 4",+ "h5": "标题 5",+ "h6": "标题 6"+ }+ },+ "help": {+ "text": "帮助"+ },+ "hr": {+ "text": "水平分割线"+ },+ "image": {+ "text": "图片",+ "add_image": "添加图片",+ "tab_image": "上传图片",+ "form_image": {+ "fields": {+ "file": {+ "label": "图片文件",+ "btn": "选择图片",+ "msg": {+ "empty": "请选择图片文件。",+ "only_image": "只能上传图片文件。",+ "max_size": "图片文件大小不能超过 4 MB。"+ }+ },+ "description": {+ "label": "图片描述(可选)"+ }+ }+ },+ "tab_url": "网络图片",+ "form_url": {+ "fields": {+ "url": {+ "label": "图片地址",+ "msg": {+ "empty": "图片地址不能为空"+ }+ },+ "name": {+ "label": "图片描述(可选)"+ }+ }+ },+ "btn_cancel": "取消",+ "btn_confirm": "添加",+ "uploading": "上传中..."+ },+ "indent": {+ "text": "添加缩进"+ },+ "outdent": {+ "text": "减少缩进"+ },+ "italic": {+ "text": "斜体"+ },+ "link": {+ "text": "超链接",+ "add_link": "添加超链接",+ "form": {+ "fields": {+ "url": {+ "label": "链接",+ "msg": {+ "empty": "链接不能为空。"+ }+ },+ "name": {+ "label": "链接描述(可选)"+ }+ }+ },+ "btn_cancel": "取消",+ "btn_confirm": "添加"+ },+ "ordered_list": {+ "text": "有编号列表"+ },+ "unordered_list": {+ "text": "无编号列表"+ },+ "table": {+ "text": "表格",+ "heading": "表头",+ "cell": "单元格"+ }+ },+ "close_modal": {+ "title": "关闭原因是...",+ "btn_cancel": "取消",+ "btn_submit": "提交",+ "remark": {+ "empty": "不能为空。"+ },+ "msg": {+ "empty": "请选择一个原因。"+ }+ },+ "report_modal": {+ "flag_title": "举报原因是...",+ "close_title": "关闭原因是...",+ "review_question_title": "审查问题",+ "review_answer_title": "审查回答",+ "review_comment_title": "审查评论",+ "btn_cancel": "取消",+ "btn_submit": "提交",+ "remark": {+ "empty": "不能为空"+ },+ "msg": {+ "empty": "请选择一个原因。"+ }+ },+ "tag_modal": {+ "title": "创建新标签",+ "form": {+ "fields": {+ "display_name": {+ "label": "显示名称(别名)",+ "msg": {+ "empty": "不能为空",+ "range": "不能超过 35 个字符"+ }+ },+ "slug_name": {+ "label": "URL 固定链接",+ "description": "必须由 \"a-z\", \"0-9\", \"+ # - .\" 组成",+ "msg": {+ "empty": "不能为空",+ "range": "不能超过 35 个字符",+ "character": "包含非法字符"+ }+ },+ "description": {+ "label": "标签描述(可选)"+ }+ }+ },+ "btn_cancel": "取消",+ "btn_submit": "提交"+ },+ "tag_info": {+ "created_at": "创建于",+ "edited_at": "编辑于",+ "synonyms": {+ "title": "同义词",+ "text": "以下标签等同于",+ "empty": "此标签目前没有同义词。",+ "btn_add": "添加同义词",+ "btn_edit": "编辑",+ "btn_save": "保存"+ },+ "synonyms_text": "以下标签等同于",+ "delete": {+ "title": "删除标签",+ "content": "<p>不允许删除有关联问题的标签。</p><p>请先从关联的问题中删除此标签的引用。</p>",+ "content2": "确定要删除吗?",+ "close": "关闭"+ }+ },+ "edit_tag": {+ "title": "编辑标签",+ "default_reason": "编辑标签",+ "form": {+ "fields": {+ "revision": {+ "label": "编辑历史"+ },+ "display_name": {+ "label": "名称"+ },+ "slug_name": {+ "label": "URL 固定链接",+ "info": "必须由 \"a-z\", \"0-9\", \"+ # - .\" 组成"+ },+ "description": {+ "label": "描述"+ },+ "edit_summary": {+ "label": "编辑概要",+ "placeholder": "简单描述更改原因 (错别字、文字表达、格式等等)"+ }+ }+ },+ "btn_save_edits": "保存更改",+ "btn_cancel": "取消"+ },+ "dates": {+ "long_date": "YYYY年MM月",+ "long_date_with_year": "YYYY年MM月DD日",+ "long_date_with_time": "YYYY年MM月DD日 HH:mm",+ "now": "刚刚",+ "x_seconds_ago": "{{count}} 秒前",+ "x_minutes_ago": "{{count}} 分钟前",+ "x_hours_ago": "{{count}} 小时前"+ },+ "comment": {+ "btn_add_comment": "添加评论",+ "reply_to": "回复",+ "btn_reply": "回复",+ "btn_edit": "编辑",+ "btn_delete": "删除",+ "btn_report": "举报",+ "btn_save_edits": "保存",+ "btn_cancel": "取消",+ "show_more": "显示更多评论",+ "tip_question": "使用评论提问更多信息或者提出改进意见。尽量避免使用评论功能回答问题。",+ "tip_answer": "使用评论对回答者进行回复,或者通知回答者你已更新了问题的内容。如果要补充或者完善问题的内容,请在原问题中更改。"+ },+ "edit_answer": {+ "title": "编辑回答",+ "default_reason": "编辑回答",+ "form": {+ "fields": {+ "revision": {+ "label": "编辑历史"+ },+ "answer": {+ "label": "回答内容"+ },+ "edit_summary": {+ "label": "编辑概要",+ "placeholder": "简单描述更改原因 (错别字、文字表达、格式等等)"+ }+ }+ },+ "btn_save_edits": "保存更改",+ "btn_cancel": "取消"+ },+ "tags": {+ "title": "标签",+ "sort_buttons": {+ "popular": "热门",+ "name": "名称",+ "newest": "最新"+ },+ "button_follow": "关注",+ "button_following": "已关注",+ "tag_label": "个问题",+ "search_placeholder": "通过标签名过滤",+ "no_description": "此标签无描述。",+ "more": "更多"+ },+ "ask": {+ "title": "提交新的问题",+ "edit_title": "编辑问题",+ "default_reason": "编辑问题",+ "similar_questions": "相似的问题",+ "form": {+ "fields": {+ "revision": {+ "label": "编辑历史"+ },+ "title": {+ "label": "标题",+ "placeholder": "请详细描述你的问题",+ "msg": {+ "empty": "标题不能为空",+ "range": "标题最多 150 个字符"+ }+ },+ "body": {+ "label": "内容",+ "msg": {+ "empty": "内容不能为空"+ }+ },+ "tags": {+ "label": "标签",+ "msg": {+ "empty": "必须选择一个标签"+ }+ },+ "answer": {+ "label": "回答内容",+ "msg": {+ "empty": "回答内容不能为空"+ }+ }+ }+ },+ "btn_post_question": "提交问题",+ "btn_save_edits": "保存更改",+ "answer_question": "直接发表回答",+ "post_question&answer": "提交问题和回答"+ },+ "tag_selector": {+ "add_btn": "添加标签",+ "create_btn": "创建新标签",+ "search_tag": "搜索标签",+ "hint": "选择至少一个与问题相关的标签。",+ "no_result": "没有匹配的标签"+ },"header": {"nav": {"question": "问题","tag": "标签","user": "用户",- "profile": "个人主页",- "setting": "个人设置",- "logout": "退出登录"+ "profile": "用户主页",+ "setting": "账号设置",+ "logout": "退出登录",+ "admin": "Admin"},"search": {"placeholder": "搜索"- },- "add_question": "提问题"+ }+ },+ "footer": {+ "build_on": "Build on <1> Answer </1>- the open-source software that power Q&A communities.<br />Made with love. © 2022 Answer."+ },+ "upload_img": {+ "name": "Change",+ "loading": "loading..."},"pic_auth_code": {- "btn_name": "验证",- "title": "验证码",- "placeholder": "输入上面的文字",+ "title": "Captcha",+ "placeholder": "Type the text above","msg": {- "empty": "不能为空"+ "empty": "Captcha cannot be empty."}},"inactive": {- "first": "你几乎已经完成!我们发送了一封激活邮件到 <strong>{{mail}}</strong>. 请按照邮件中的说明激活您的帐户。",+ "first": "马上就好了!我们发送了一封激活邮件到 <bold>{{mail}}</bold>。请按照邮件中的说明激活您的帐户。","info": "如果没有收到,请检查您的垃圾邮件文件夹。",- "another": "我们向您发送了另一封激活电子邮件,地址为 <strong>{{mail}}</strong>. 它可能需要几分钟才能到达;请务必检查您的垃圾邮件文件夹。",- "btn_name": "重新发送激活电邮",+ "another": "我们向您发送了另一封激活电子邮件,地址为 <bold>{{mail}}</bold>。它可能需要几分钟才能到达;请务必检查您的垃圾邮件文件夹。",+ "btn_name": "重新发送激活邮件","msg": {"empty": "不能为空"}},"login": {"page_title": "欢迎来到 Answer",- "btn_name": "登录","info_sign": "没有帐户?<1>注册</1>","info_login": "已经有一个帐户?<1>登录</1>","forgot_pass": "忘记密码?","name": {"label": "昵称","msg": {- "empty": "昵称不能为空"+ "empty": "昵称不能为空",+ "range": "昵称最多 30 个字符"}},"email": {@@ -56,7 +451,468 @@}}},- "footer": {- "build_on": "由 <1> Answer </1>构建- 为知识社区提供动力的开源软件.<br />Made with love. © 2022 Answer ."+ "account_forgot": {+ "page_title": "忘记密码",+ "btn_name": "发送恢复邮件",+ "send_success": "如无意外,你的邮箱 <strong>{{mail}}</strong> 将会收到一封重置密码的邮件,请根据指引重置你的密码。",+ "email": {+ "label": "邮箱",+ "msg": {+ "empty": "邮箱不能为空"+ }+ }+ },+ "password_reset": {+ "page_title": "密码重置",+ "btn_name": "重置我的密码",+ "reset_success": "你已经成功更改密码,将返回登录页面",+ "link_invalid": "抱歉,此密码重置链接已失效。也许是你已经重置过密码了?",+ "to_login": "前往登录页面",+ "password": {+ "label": "密码",+ "msg": {+ "empty": "密码不能为空",+ "length": "密码长度在8-32个字符之间",+ "different": "两次输入密码不一致"+ }+ },+ "password_confirm": {+ "label": "确认新密码"+ }+ },+ "settings": {+ "page_title": "设置",+ "nav": {+ "profile": "我的资料",+ "notification": "通知",+ "account": "账号",+ "interface": "界面"+ },+ "profile": {+ "btn_name": "保存更改",+ "display_name": {+ "label": "昵称",+ "msg": "昵称不能为空",+ "msg_range": "昵称不能超过 30 个字符"+ },+ "username": {+ "label": "用户名",+ "caption": "用户之间可以通过 \"@用户名\" 进行交互。",+ "msg": "用户名不能为空",+ "msg_range": "用户名不能超过 30 个字符",+ "character": "用户名只能由 \"a-z\", \"0-9\", \" - . _\" 组成"+ },+ "avatar": {+ "label": "头像",+ "text": "您可以上传图片作为头像,也可以 <1>重置</1> 为"+ },+ "bio": {+ "label": "关于我 (可选)"+ },+ "website": {+ "label": "网站 (可选)",+ "placeholder": "https://example.com",+ "msg": "格式不正确"+ },+ "location": {+ "label": "位置 (可选)",+ "placeholder": "城市, 国家"+ }+ },+ "notification": {+ "email": {+ "label": "邮件通知",+ "radio": "你的提问有新的回答,评论,和其他"+ }+ },+ "account": {+ "change_email_btn": "更改邮箱",+ "change_pass_btn": "更改密码",+ "change_email_info": "邮件已发送。请根据指引完成验证。",+ "email": {+ "label": "邮箱",+ "msg": "邮箱不能为空"+ },+ "password_title": "密码",+ "current_pass": {+ "label": "当前密码",+ "msg": {+ "empty": "当前密码不能为空",+ "length": "密码长度必须在 8 至 32 之间",+ "different": "两次输入的密码不匹配"+ }+ },+ "new_pass": {+ "label": "新密码"+ },+ "pass_confirm": {+ "label": "确认新密码"+ }+ },+ "interface": {+ "lang": {+ "label": "界面语言",+ "text": "设置用户界面语言,在刷新页面后生效。"+ }+ }+ },+ "toast": {+ "update": "更新成功",+ "update_password": "更改密码成功。",+ "flag_success": "感谢您的标记,我们会尽快处理。"+ },+ "related_question": {+ "title": "相关问题",+ "btn": "我要提问",+ "answers": "个回答"+ },+ "question_detail": {+ "Asked": "提问于",+ "asked": "提问于",+ "update": "修改于",+ "edit": "最后编辑于",+ "Views": "阅读次数",+ "Follow": "关注此问题",+ "Following": "已关注",+ "answered": "回答于",+ "closed_in": "Closed in",+ "show_exist": "Show existing question.",+ "answers": {+ "title": "个回答",+ "score": "评分",+ "newest": "最新",+ "btn_accept": "采纳",+ "btn_accepted": "已被采纳"+ },+ "write_answer": {+ "title": "你的回答",+ "btn_name": "提交你的回答",+ "confirm_title": "继续回答",+ "continue": "继续",+ "confirm_info": "<p>您确定要提交一个新的回答吗?</p><p>您可以直接编辑和改善您之前的回答的。</p>",+ "empty": "回答内容不能为空。"+ }+ },+ "delete": {+ "title": "删除",+ "btn_edit": "编辑",+ "btn_close": "关闭",+ "btn_delete": "删除",+ "btn_report": "举报",+ "question": "我们不建议<strong>删除有回答的帖子</strong>。因为这样做会使得后来的读者无法从该问题中获得帮助。</p><p>如果删除过多有回答的帖子,你的账号将会被禁止提问。你确定要删除吗?",+ "answer_accepted": "<p>我们不建议<strong>删除被采纳的回答</strong>。因为这样做会使得后来的读者无法从该回答中获得帮助。</p>如果删除过多被采纳的回答,你的账号将会被禁止回答任何提问。你确定要删除吗?",+ "other": "你确定要删除?",+ "tip_question_deleted": "此问题已被删除",+ "tip_answer_deleted": "此回答已被删除"+ },+ "btns": {+ "confirm": "确认",+ "cancel": "取消",+ "save": "保存",+ "delete": "删除",+ "login": "登录",+ "signup": "注册",+ "logout": "退出登录",+ "verify": "验证",+ "add_question": "我要提问"+ },+ "search": {+ "title": "搜索结果",+ "keywords": "关键词",+ "options": "选项",+ "follow": "关注",+ "following": "已关注",+ "counts": "{{count}} 个结果",+ "more": "更多",+ "sort_btns": {+ "relevance": "相关性",+ "newest": "最新的",+ "active": "活跃的",+ "score": "评分"+ },+ "tips": {+ "title": "高级搜索提示",+ "tag": "<1>[tag]</1> 在指定标签中搜索",+ "user": "<1>user:username</1> 根据作者搜索",+ "answer": "<1>answers:0</1> 搜索未回答的问题",+ "score": "<1>score:3</1> 评分 3 分或以上",+ "question": "<1>is:question</1> 只搜索问题",+ "is_answer": "<1>is:answer</1> 只搜索回答"+ },+ "empty": "找不到任何相关的内容。<br /> 请尝试其他关键字,或者减少查找内容的长度。"+ },+ "share": {+ "name": "分享",+ "copy": "复制链接",+ "via": "Share post via...",+ "copied": "已复制",+ "facebook": "分享到 Facebook",+ "twitter": "分享到 Twitter"+ },+ "cannot_vote_for_self": "不能给自己投票",+ "modal_confirm": {+ "title": "发生错误..."+ },+ "account_result": {+ "page_title": "Welcome to Answer",+ "success": "Your new account is confirmed; you will be redirected to the home page.",+ "link": "Continue to homepage",+ "invalid": "Sorry, this account confirmation link is no longer valid. Perhaps your account is already active?",+ "confirm_new_email": "Your email has been updated.",+ "confirm_new_email_invalid": "Sorry, this confirmation link is no longer valid. Perhaps your email was already changed?"+ },+ "question": {+ "following_tags": "已关注的标签",+ "edit": "编辑",+ "save": "保存",+ "follow_tag_tip": "按照标签整理您的问题列表。",+ "hot_questions": "热点问题",+ "all_questions": "全部问题",+ "x_questions": "{{ count }} 个问题",+ "x_answers": "{{ count }} 个回答",+ "questions": "个问题",+ "answers": "回答",+ "newest": "最新",+ "active": "活跃",+ "frequent": "浏览量",+ "score": "评分",+ "unanswered": "未回答",+ "modified": "修改于",+ "answered": "回答于",+ "asked": "提问于",+ "closed": "已关闭",+ "follow_a_tag": "关注一个标签",+ "more": "更多"+ },+ "personal": {+ "overview": "概览",+ "answers": "回答",+ "answer": "回答",+ "questions": "问题",+ "question": "问题",+ "bookmarks": "收藏",+ "reputation": "声望",+ "comments": "评论",+ "votes": "投票",+ "newest": "最新",+ "score": "评分",+ "edit_profile": "编辑我的资料",+ "visited_x_days": "Visited {{ count }} days",+ "viewed": "Viewed",+ "joined": "加入于",+ "last_login": "上次登录",+ "about_me": "关于我",+ "about_me_empty": "// Hello, World !",+ "top_answers": "热门回答",+ "top_questions": "热门问题",+ "stats": "状态",+ "list_empty": "No posts found.<br />Perhaps you'd like to select a different tab?",+ "accepted": "已采纳",+ "answered": "回答于",+ "asked": "提问于",+ "upvote": "赞同",+ "downvote": "反对",+ "mod_short": "管理员",+ "mod_long": "管理员",+ "x_reputation": "声望",+ "x_votes": "votes received",+ "x_answers": "个回答",+ "x_questions": "个问题"+ },+ "page_404": {+ "description": "页面不存在",+ "back_home": "回到主页"+ },+ "page_50X": {+ "description": "The server encountered an error and could not complete your request.",+ "back_home": "回到主页"+ },+ "admin": {+ "admin_header": {+ "title": "后台管理"+ },+ "nav_menus": {+ "dashboard": "Dashboard",+ "contents": "内容管理",+ "questions": "问题",+ "answers": "回答",+ "users": "用户管理",+ "flags": "举报管理",+ "settings": "站点设置",+ "general": "一般",+ "interface": "界面",+ "smtp": "SMTP"+ },+ "dashboard": {+ "title": "Dashboard",+ "welcome": "欢迎来到 Answer 后台管理!",+ "version": "版本"+ },+ "flags": {+ "title": "举报",+ "pending": "等待处理",+ "completed": "已完成",+ "flagged": "被举报内容",+ "created": "创建于",+ "action": "操作",+ "review": "审查"+ },+ "change_modal": {+ "title": "更改用户状态为...",+ "btn_cancel": "取消",+ "btn_submit": "提交",+ "normal_name": "正常",+ "normal_description": "正常状态的用户可以提问和回答。",+ "suspended_name": "封禁",+ "suspended_description": "被封禁的用户将无法登录。",+ "deleted_name": "删除",+ "deleted_description": "删除用户的个人信息,认证等等。",+ "inactive_name": "不活跃",+ "inactive_description": "不活跃的用户必须重新验证邮箱。",+ "confirm_title": "删除此用户",+ "confirm_content": "确定要删除此用户?此操作无法撤销!",+ "confirm_btn": "删除",+ "msg": {+ "empty": "请选择一个原因"+ }+ },+ "status_modal": {+ "title": "更改 {{ type }} 状态为...",+ "normal_name": "正常",+ "normal_description": "所有用户都可以访问",+ "closed_name": "关闭",+ "closed_description": "不能回答,但仍然可以编辑、投票和评论。",+ "deleted_name": "删除",+ "deleted_description": "所有获得/损失的声望将会恢复。",+ "btn_cancel": "取消",+ "btn_submit": "提交",+ "btn_next": "下一步"+ },+ "users": {+ "title": "用户",+ "name": "名称",+ "email": "邮箱",+ "reputation": "声望",+ "created_at": "创建时间",+ "delete_at": "删除时间",+ "suspend_at": "封禁时间",+ "status": "状态",+ "action": "操作",+ "change": "更改",+ "all": "全部",+ "inactive": "不活跃",+ "suspended": "已封禁",+ "deleted": "已删除",+ "normal": "正常"+ },+ "questions": {+ "page_title": "问题",+ "normal": "正常",+ "closed": "已关闭",+ "deleted": "已删除",+ "post": "标题",+ "votes": "投票",+ "answers": "回答数",+ "created": "创建于",+ "status": "状态",+ "action": "操作",+ "change": "更改"+ },+ "answers": {+ "page_title": "回答",+ "normal": "正常",+ "deleted": "已删除",+ "post": "标题",+ "votes": "投票",+ "created": "创建于",+ "status": "状态",+ "action": "操作",+ "change": "更改"+ },+ "general": {+ "page_title": "一般",+ "name": {+ "label": "站点名称",+ "msg": "不能为空",+ "text": "站点的名称,作为站点的标题(HTML 的 title 标签)。"+ },+ "short_description": {+ "label": "简短的站点标语 (可选)",+ "msg": "不能为空",+ "text": "简短的标语,作为网站主页的标题(HTML 的 title 标签)。"+ },+ "description": {+ "label": "网站描述 (可选)",+ "msg": "不能为空",+ "text": "使用一句话描述本站,作为网站的描述(HTML 的 meta 标签)。"+ }+ },+ "interface": {+ "page_title": "界面",+ "logo": {+ "label": "Logo (可选)",+ "msg": "不能为空",+ "text": "可以上传图片,或者<1>重置</1>为站点标题。"+ },+ "theme": {+ "label": "主题",+ "msg": "不能为空",+ "text": "选择一个主题"+ },+ "language": {+ "label": "界面语言",+ "msg": "不能为空",+ "text": "设置用户界面语言,在刷新页面后生效。"+ }+ },+ "smtp": {+ "page_title": "SMTP",+ "from_email": {+ "label": "发件人地址",+ "msg": "不能为空",+ "text": "用于发送邮件的地址。"+ },+ "from_name": {+ "label": "发件人名称",+ "msg": "不能为空",+ "text": "发件人的名称"+ },+ "smtp_host": {+ "label": "SMTP 主机",+ "msg": "不能为空",+ "text": "邮件服务器"+ },+ "encryption": {+ "label": "加密",+ "msg": "不能为空",+ "text": "对于大多数服务器而言,SSL 是推荐开启的。",+ "ssl": "SSL",+ "none": "无加密"+ },+ "smtp_port": {+ "label": "SMTP 端口",+ "msg": "SMTP 端口必须在 1 ~ 65535 之间。",+ "text": "邮件服务器的端口号。"+ },+ "smtp_username": {+ "label": "SMTP 用户名",+ "msg": "不能为空"+ },+ "smtp_password": {+ "label": "SMTP 密码",+ "msg": "不能为空"+ },+ "test_email_recipient": {+ "label": "测试邮件收件人",+ "text": "提供用于接收测试邮件的邮箱地址。",+ "msg": "地址无效"+ },+ "smtp_authentication": {+ "label": "SMTP 认证",+ "msg": "不能为空",+ "yes": "是",+ "no": "否"+ }+ }}}diff --git a/ui/src/pages/Questions/Detail/components/Question/index.tsx b/ui/src/pages/Questions/Detail/components/Question/index.tsxindex 8085b172..14f85f24 100644--- a/ui/src/pages/Questions/Detail/components/Question/index.tsx+++ b/ui/src/pages/Questions/Detail/components/Question/index.tsx@@ -88,7 +88,7 @@ const Index: FC<Props> = ({ data, initPage, hasAnswer }) => {size="sm"className="p-0 btn-no-border"onClick={(e) => handleFollow(e)}>- {followed ? 'Following' : 'Follow'}+ {t(followed ? 'Following' : 'Follow')}</Button></div><div className="m-n1">diff --git a/ui/src/pages/Users/Personal/index.tsx b/ui/src/pages/Users/Personal/index.tsxindex 7c099a4b..c514d5d3 100644--- a/ui/src/pages/Users/Personal/index.tsx+++ b/ui/src/pages/Users/Personal/index.tsx@@ -116,7 +116,7 @@ const Personal: FC = () => {)}</Col><Col xxl={3} lg={4} sm={12} className="mt-5 mt-lg-0">- <h5 className="mb-3">Stats</h5>+ <h5 className="mb-3">{t('stats')}</h5>{userInfo?.info && (<><div className="text-secondary">