fix: supplement i18n for admin flags page

This commit is contained in:
shuai 2023-04-27 11:32:06 +08:00
parent 65e5af6482
commit e3a49132b2
3 changed files with 14 additions and 2 deletions

View File

@ -893,6 +893,10 @@ ui:
skip: Skip
discard_draft: Discard draft
pinned: Pinned
all: All
question: Question
answer: Answer
comment: Comment
search:
title: Search Results
keywords: Keywords
@ -1171,6 +1175,7 @@ ui:
pending: Pending
completed: Completed
flagged: Flagged
flagged_type: Flagged {{ type }}
created: Created
action: Action
review: Review

View File

@ -836,6 +836,10 @@ ui:
skip: 略过
discard_draft: 丢弃草稿
pinned: 已置顶
all: 所有
question: 问题
answer: 回答
comment: 评论
search:
title: 搜索结果
keywords: 关键词
@ -1096,6 +1100,7 @@ ui:
pending: 等待处理
completed: 已完成
flagged: 被举报内容
flagged_type: 被举报的{{ type }}
created: 创建于
action: 操作
review: 审查

View File

@ -73,7 +73,7 @@ const Flags: FC = () => {
{flagTypeKeys.map((li) => {
return (
<option value={li} key={li}>
{li}
{t(li, { keyPrefix: 'btns' })}
</option>
);
})}
@ -96,7 +96,9 @@ const Flags: FC = () => {
<td>
<Stack>
<small className="text-secondary">
Flagged {li.object_type}
{t('flagged_type', {
type: t(li.object_type, { keyPrefix: 'btns' }),
})}
</small>
<BaseUserCard
data={li.reported_user}