Hey guys,
just wanted to say great job on this amazing library! 👍
I'm wondering about one thing: is there a way to switch language more gracefully than renaming the language files? I found the different langEN.js etc. files in the lib folder and renaming the chinese lang.js to langCN.js and the english one to lang.js does switch the language, but wouldn't it be much better to have some generic language option?
I.e. in the echarts API you can specify
lang: 'EN',
and it will load the langEN.js file? Is this already in place and have I missed it?
If not, I would be happy to contribute with something like this.
Thanks!
switch language and switch output formats for values would be great
yes great idea, does anybody know if this is intended
Current, switching language on runtime has not been supported.
Language can only be switched on build stage, as this doc introduced:
node node_modules/echarts/build/build.js --lang en
And the pre-build artifacts of en version have been provided in echarts/dist/xxx-en.js.
In highcharts this is possible simply calling a function: https://api.highcharts.com/highcharts/lang
Maybe this would be also an option for here? I really need this feature without the need to rebuild the library every time there is an update.
I think this is a more urgent thing!!!!!!
I think is a urgent feature. Switches given langFI or langDE without building echarts. There is a var lang sadly without a interface.
@JSchmidt63 I agree this needs to be resolved, but for you own benefit we managed by using https://www.npmjs.com/package/patch-package
Any news about this? Thanks
Look here in this issue
Progress of Next Major Version: 5.0 #12926
to be build at a extension, planed at september
can see the PR13083 and welcome to join the PR. :p
Most helpful comment
In highcharts this is possible simply calling a function: https://api.highcharts.com/highcharts/lang
Maybe this would be also an option for here? I really need this feature without the need to rebuild the library every time there is an update.