-
Notifications
You must be signed in to change notification settings - Fork 6
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
How to setup a locale? #10
Labels
question
Further information is requested
Comments
Just include what you posted in your source code. You may also want to set this locale globally for echarts: // app.vue
<script setup>
provide(INIT_OPTIONS_KEY,{locale})
</script> |
I fixed the error I was having on the build like this:
|
Recommend import { registerLocale } from 'echarts/core' instead of import * as echarts from 'echarts'
echarts.registerLocale() The second one will include the whole echarts into the bundle. |
That throws an error when running the app with a build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's the equivalent of this with nuxt-echarts?
The text was updated successfully, but these errors were encountered: