mirror of https://gitee.com/answerdev/answer.git
fix: supplement i18n for admin flags page
This commit is contained in:
parent
65e5af6482
commit
e3a49132b2
|
@ -893,6 +893,10 @@ ui:
|
||||||
skip: Skip
|
skip: Skip
|
||||||
discard_draft: Discard draft
|
discard_draft: Discard draft
|
||||||
pinned: Pinned
|
pinned: Pinned
|
||||||
|
all: All
|
||||||
|
question: Question
|
||||||
|
answer: Answer
|
||||||
|
comment: Comment
|
||||||
search:
|
search:
|
||||||
title: Search Results
|
title: Search Results
|
||||||
keywords: Keywords
|
keywords: Keywords
|
||||||
|
@ -1171,6 +1175,7 @@ ui:
|
||||||
pending: Pending
|
pending: Pending
|
||||||
completed: Completed
|
completed: Completed
|
||||||
flagged: Flagged
|
flagged: Flagged
|
||||||
|
flagged_type: Flagged {{ type }}
|
||||||
created: Created
|
created: Created
|
||||||
action: Action
|
action: Action
|
||||||
review: Review
|
review: Review
|
||||||
|
|
|
@ -836,6 +836,10 @@ ui:
|
||||||
skip: 略过
|
skip: 略过
|
||||||
discard_draft: 丢弃草稿
|
discard_draft: 丢弃草稿
|
||||||
pinned: 已置顶
|
pinned: 已置顶
|
||||||
|
all: 所有
|
||||||
|
question: 问题
|
||||||
|
answer: 回答
|
||||||
|
comment: 评论
|
||||||
search:
|
search:
|
||||||
title: 搜索结果
|
title: 搜索结果
|
||||||
keywords: 关键词
|
keywords: 关键词
|
||||||
|
@ -1096,6 +1100,7 @@ ui:
|
||||||
pending: 等待处理
|
pending: 等待处理
|
||||||
completed: 已完成
|
completed: 已完成
|
||||||
flagged: 被举报内容
|
flagged: 被举报内容
|
||||||
|
flagged_type: 被举报的{{ type }}
|
||||||
created: 创建于
|
created: 创建于
|
||||||
action: 操作
|
action: 操作
|
||||||
review: 审查
|
review: 审查
|
||||||
|
|
|
@ -73,7 +73,7 @@ const Flags: FC = () => {
|
||||||
{flagTypeKeys.map((li) => {
|
{flagTypeKeys.map((li) => {
|
||||||
return (
|
return (
|
||||||
<option value={li} key={li}>
|
<option value={li} key={li}>
|
||||||
{li}
|
{t(li, { keyPrefix: 'btns' })}
|
||||||
</option>
|
</option>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
@ -96,7 +96,9 @@ const Flags: FC = () => {
|
||||||
<td>
|
<td>
|
||||||
<Stack>
|
<Stack>
|
||||||
<small className="text-secondary">
|
<small className="text-secondary">
|
||||||
Flagged {li.object_type}
|
{t('flagged_type', {
|
||||||
|
type: t(li.object_type, { keyPrefix: 'btns' }),
|
||||||
|
})}
|
||||||
</small>
|
</small>
|
||||||
<BaseUserCard
|
<BaseUserCard
|
||||||
data={li.reported_user}
|
data={li.reported_user}
|
||||||
|
|
Loading…
Reference in New Issue