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