We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt
v3.0.0
Install nuxt ui and i18n module (to switch to current loacale)
in app.vue:
template> <UApp :toaster="{ position: $viewport.isLessThan('md') ? 'bottom-center' : 'top-center' }" :locale="locales[locale as 'fr' | 'en']" class="" > <NuxtLayout> <NuxtPage /> </NuxtLayout> </UApp> </template> <script setup lang="ts"> import { fr, en } from '@nuxt/ui/locale'; const locales = { fr, en }; const { t, locale } = useI18n(); </script>
Analyze your bundle: npx nuxi analyze
npx nuxi analyze
As you can see, unused locales are still included in the bundle, while only Fr and En have been imported
No response
The text was updated successfully, but these errors were encountered:
danielroe
Successfully merging a pull request may close this issue.
Environment
Is this bug related to Nuxt or Vue?
Nuxt
Version
v3.0.0
Reproduction
Install nuxt ui and i18n module (to switch to current loacale)
in app.vue:
Analyze your bundle:
npx nuxi analyze
Description
As you can see, unused locales are still included in the bundle, while only Fr and En have been imported
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: