sea-chart 0.0.102 → 0.0.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ import './index.css';
10
10
  const TypesDialog = _ref => {
11
11
  let {
12
12
  type,
13
+ lang,
13
14
  onToggle: propsOnToggle,
14
15
  onChange
15
16
  } = _ref;
@@ -20,6 +21,11 @@ const TypesDialog = _ref => {
20
21
  const lang = context.getSetting('lang');
21
22
  return lang !== 'zh-cn' ? ZH_CN_SUPPORT_CHARTS : [];
22
23
  }, []);
24
+ useEffect(() => {
25
+ if (lang) {
26
+ intl.setLang(lang);
27
+ }
28
+ }, [lang]);
23
29
  useEffect(() => {
24
30
  const selectStatisticIndex = CHART_TYPES.findIndex(item => item.children.includes(type));
25
31
  const currentCatIndex = selectStatisticIndex < 0 ? 0 : selectStatisticIndex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sea-chart",
3
- "version": "0.0.102",
3
+ "version": "0.0.104",
4
4
  "main": "./dist/index.js",
5
5
  "dependencies": {
6
6
  "@antv/data-set": "0.11.8",