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: {
status: 'Topic status',
featured: 'Featured',
normal: 'Normal',
banned: 'Banned',
reply: 'Reply',
comments: 'Comments',
comment: 'Commented to',

View file

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

View file

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