mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-31 04:07:54 +01:00
Translate tag
This commit is contained in:
@@ -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)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user