Skip to content

Switching Language? #7451

@ghost

Description

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions