Skip to content
New issue

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

[Bug Report][3.1.12] Why are all i18n files loaded #17043

Closed
margintopt opened this issue Mar 31, 2023 · 1 comment
Closed

[Bug Report][3.1.12] Why are all i18n files loaded #17043

margintopt opened this issue Mar 31, 2023 · 1 comment

Comments

@margintopt
Copy link

Environment

Vuetify Version: 3.1.12
Vue Version: 3.2.47
Browsers: Edge 111.0.1661.54
OS: Windows 10

Steps to reproduce

Hello , I just started learning vuetify.

I would like to know why I set the language setting here
const vuetify = createVuetify({ ssr: true, locale: { locale: "en", messages: { zhHans, zhHant, en }, }, });
but all the language files are loaded on the network,
image

can I load only these three languages?

PS:
Why does the console report this error?
image

Expected Behavior

Only load the ones I set

Actual Behavior

load all

Reproduction Link

https://codesandbox.io/p/sandbox/funny-sanne-0p43vq?welcome=true&file=%2FREADME.md

@KaelWD
Copy link
Member

KaelWD commented Oct 4, 2023

vitejs/vite#8237 - they will be treeshaken in the production build

@KaelWD KaelWD closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants