Translate tag

This commit is contained in:
2021-08-31 18:05:06 +02:00
parent 36bc685817
commit 91443cd4bf

View File

@@ -102,7 +102,8 @@
import {
computed,
defineComponent,
ref, useAsync,
ref,
useAsync,
useContext,
useMeta,
useRoute,
@@ -212,7 +213,7 @@ export default defineComponent({
const formatTags = computed(() => {
let tags = ""
postData.value.tags.map(tag => {
tags += i18n.t(String(tag)) + ", "
tags += i18n.t(String(tag.label.code)) + ", "
})
return tags.substring(0, tags.length - 2)
})