feat: 다국어 json 호출 추가

This commit is contained in:
“hyeonggkim”
2025-10-24 14:14:54 +09:00
parent 76fc7a68c0
commit f7a292808f
13 changed files with 196 additions and 561 deletions

View File

@@ -11,6 +11,7 @@ interface Props {
}
const props = defineProps<Props>()
const { locale } = useI18n()
// 템플릿 레지스트리 사용
const { getTemplateComponent } = useTemplateRegistry()
@@ -44,12 +45,18 @@ const setupSeoMeta = (metaTag: PageDataMetaTag) => {
})
}
onMounted(() => {
const { sendLog } = useAnalytics()
sendLog(locale.value, useAnalyticsLogDataDirect('view', 1))
})
// 메타 태그 설정 감시
watchEffect(() => {
if (shouldShowMetaTag.value && props.pageData.meta_tag) {
setupSeoMeta(props.pageData.meta_tag)
}
})
</script>
<template>