From 32bad27d222f8a1ab2d77fd3ba38f6257b1362d5 Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Mon, 9 Oct 2023 02:14:57 +0800 Subject: [PATCH] feat: topic status i18n --- src/language/en.ts | 3 +++ src/language/zh.ts | 3 +++ src/views/topic/components/Master.vue | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/language/en.ts b/src/language/en.ts index 81876941..3c401c86 100644 --- a/src/language/en.ts +++ b/src/language/en.ts @@ -97,6 +97,9 @@ export default { }, content: { status: 'Topic status', + featured: 'Featured', + normal: 'Normal', + banned: 'Banned', reply: 'Reply', comments: 'Comments', comment: 'Commented to', diff --git a/src/language/zh.ts b/src/language/zh.ts index 6144d8cb..faaac8ca 100644 --- a/src/language/zh.ts +++ b/src/language/zh.ts @@ -97,6 +97,9 @@ export default { }, content: { status: '话题状态', + featured: '被推', + normal: '正常', + banned: '封禁', reply: '回复', comments: '评论', comment: '评论', diff --git a/src/views/topic/components/Master.vue b/src/views/topic/components/Master.vue index 97c2e28e..3e06eb50 100644 --- a/src/views/topic/components/Master.vue +++ b/src/views/topic/components/Master.vue @@ -97,7 +97,9 @@ const loliStatus = computed(() => {
{{ `${$tm('topic.content.status')}:` }} - {{ loliStatus }} + {{ + $tm(`topic.content.${loliStatus}`) + }}