feat: topic status i18n

This commit is contained in:
KUN1007 2023-10-09 02:14:57 +08:00
parent d8916c70a5
commit 654f054e53
3 changed files with 9 additions and 1 deletions

View file

@ -97,6 +97,9 @@ export default {
}, },
content: { content: {
status: 'Topic status', status: 'Topic status',
featured: 'Featured',
normal: 'Normal',
banned: 'Banned',
reply: 'Reply', reply: 'Reply',
comments: 'Comments', comments: 'Comments',
comment: 'Commented to', comment: 'Commented to',

View file

@ -97,6 +97,9 @@ export default {
}, },
content: { content: {
status: '话题状态', status: '话题状态',
featured: '被推',
normal: '正常',
banned: '封禁',
reply: '回复', reply: '回复',
comments: '评论', comments: '评论',
comment: '评论', comment: '评论',

View file

@ -97,7 +97,9 @@ const loliStatus = computed(() => {
<!-- 话题状态 --> <!-- 话题状态 -->
<div class="status"> <div class="status">
<span>{{ `${$tm('topic.content.status')}:` }}</span> <span>{{ `${$tm('topic.content.status')}:` }}</span>
<span :class="loliStatus">{{ loliStatus }}</span> <span :class="loliStatus">{{
$tm(`topic.content.${loliStatus}`)
}}</span>
</div> </div>
<Rewrite v-if="edited" :time="edited" /> <Rewrite v-if="edited" :time="edited" />
</div> </div>