-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Method to set english as the default language? #430
Comments
You can try add a webpack |
Unfortunately, as the
It would be preferable if I didn't have to target the file so loosely, as it could have negative effects on unrelated code. I have not dealt with webpack aliases before, so I may be missing something obvious, but thus far changing the language seems quite inaccessible. |
@Justineo Can this be re-opened, the solution is not viable for real world usage. |
Based off my looking into this issue, it appears the main problem is that There was/is also an issue with the dist version of the english translation, but @BrianGilbert has pushed a fix for this (apache/echarts#12387). However, until there's a new release, this fix isn't overly helpful yet. I'm not 100% certain what the best solution is at the moment, but my gut feeling is I'm either going to have to use a fork of Any thoughts on best to deal with this issue would be appreciated. |
I think a lang config option in mainline echarts would be the best long term solution, there is already an open issue requesting it: apache/echarts#7451 |
I'll discuss this with the ECharts team later and try to figure out a solution for this. |
Hi folks, it seems that they plan to provide better language support for |
@Justineo well, it's already July and Can we address this for now? @Decipher how did you solve this eventually? |
Hello, in case it helps someone until a proper solution is released this is my workaround: mv node_modules/echarts/lib/langEN.js node_modules/echarts/lib/lang.js |
Thanks @dantimofte ! |
ECharts 5 now supports |
The type of this issue / Issue 类型
Not introduced by ECharts / 非 ECharts 本身问题
Problems about ECharts itself are not handled in this repo. / 本 repo 不负责处理 ECharts 本身的问题。
Details / 详情
ECharts currently has no way to set the language at runtime, it needs to be selected at the build stage, reference:
apache/echarts#7451 (comment)
I found the following note on the echarts repo that may give a way to set it, but I can't figure where this would be added when using vue-echarts:
apache/echarts#12037 (comment)
How are you importing Vue-ECharts? / 你是如何引入 Vue-ECharts 的?
import ECharts from 'vue-echarts/dist/vue-echarts'
).vue
component/.vue
组件 (import ECharts from 'vue-echarts'
)The version of Vue-ECharts you are using / Vue-ECharts 的版本
4.7.0
Reproduction link / 复现链接
For bug reports, please provide the steps to reproduce and if possible a minimal demo of the problem. Please paste the link to your CodeSandbox demo below:
对于 Bug 报告,请在下面提供复现的步骤,最好是最小化的能够重现问题的 demo。请在下方贴入在 CodeSandbox 上 demo 的链接:
The text was updated successfully, but these errors were encountered: