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

Feature menus language #164

Open
Recodify opened this issue Jan 8, 2019 · 5 comments
Open

Feature menus language #164

Recodify opened this issue Jan 8, 2019 · 5 comments

Comments

@Recodify
Copy link

Recodify commented Jan 8, 2019

When using features such as:

  • magicType
  • restore
  • saveAsImage

The menu text is showing in Chinese how do you change the language from Chinese to English?

image

@shivamsriva31093
Copy link

Hi. I dont know if your issue is resolved, but you can refer to this issue on echarts repo:
apache/echarts#10202
It helped solve my issue.

Regards

@Ovilia
Copy link

Ovilia commented Jun 10, 2019

This can be set by name: https://echarts.apache.org/en/option.html#toolbox.feature.saveAsImage.name

@anuj9196
Copy link

anuj9196 commented Dec 6, 2019

Give an option to change default language to EN.

@chikakow
Copy link

chikakow commented May 29, 2020

fixed by exporting en version of echarts instead of 'echarts/src/echarts' in custom-echarts.ts

// export * from 'echarts/src/echarts';
export * from 'echarts/dist/echarts-en.min.js';
import 'echarts/src/chart/line';
import 'echarts/src/chart/bar';
Then in the module,
import * as echarts from './custom-echarts';
Later on,
NgxEchartsModule.forRoot({ echarts }),

@jtomek
Copy link

jtomek commented Oct 8, 2020

This worked:

NgxEchartsModule.forRoot({
      echarts: () => import('echarts/dist/echarts-en.min.js')
}),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants