feat: i18n lazy load

This commit is contained in:
Anthony Fu 2022-11-30 08:22:35 +08:00
parent ccffe9daa8
commit 07209a7d29
6 changed files with 25 additions and 17 deletions

View file

@ -1,5 +1,6 @@
<script setup>
usePageHeader()
setupPageHeader()
await setupI18n()
// We want to trigger rerendering the page when account changes
const key = computed(() => useMasto().instances.config.url || 'default')
@ -10,7 +11,5 @@ const key = computed(() => useMasto().instances.config.url || 'default')
<NuxtLayout :key="key">
<NuxtPage />
</NuxtLayout>
<TeleportTarget
id="teleport-end"
/>
<TeleportTarget id="teleport-end" />
</template>