mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-28 16:56:01 +01:00
Refactor app.vue and [slug].vue: add scoped styles and optimize i18n usage
This commit is contained in:
@@ -8,8 +8,7 @@ const {
|
||||
refresh,
|
||||
} = await useAsyncData(`writings/${route.params.slug}/db`, () => $fetch(`/api/posts/${route.params.slug}`, { method: 'POST' }))
|
||||
|
||||
const { locale } = useI18n()
|
||||
const { t } = useI18n({
|
||||
const { t, locale } = useI18n({
|
||||
useScope: 'local',
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user