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

Switching Language? #7451

Closed
ghost opened this issue Jan 9, 2018 · 10 comments
Closed

Switching Language? #7451

ghost opened this issue Jan 9, 2018 · 10 comments

Comments

@ghost
Copy link

ghost commented Jan 9, 2018

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!

@dburucu
Copy link

dburucu commented Aug 15, 2018

switch language and switch output formats for values would be great

@dirk-ecker
Copy link
Contributor

yes great idea, does anybody know if this is intended

@100pah
Copy link
Member

100pah commented Nov 29, 2018

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.

@Karamuto
Copy link

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.

@lixianshengdezhanghao
Copy link

I think this is a more urgent thing!!!!!!

@JSchmidt63
Copy link

I think is a urgent feature. Switches given langFI or langDE without building echarts. There is a var lang sadly without a interface.

@BrianGilbert
Copy link
Contributor

@JSchmidt63 I agree this needs to be resolved, but for you own benefit we managed by using https://www.npmjs.com/package/patch-package

@stereokai
Copy link

Any news about this? Thanks

@JSchmidt63
Copy link

Look here in this issue
Progress of Next Major Version: 5.0 #12926
to be build at a extension, planed at september

@wf123537200
Copy link
Contributor

can see the PR13083 and welcome to join the PR. :p

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