Skip to content

Commit

Permalink
Using react-intl-universal to improve multi language in react page
Browse files Browse the repository at this point in the history
  • Loading branch information
lxzhangchao committed Jul 7, 2017
1 parent 795a05e commit f7f01df
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions superset/assets/javascripts/explore/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ import ExploreViewContainer from './components/ExploreViewContainer';
import { exploreReducer } from './reducers/exploreReducer';
import { appSetup } from '../common';
import './main.css';
import { zh_CN } from './stores/zh_CN.js';
import { en_US } from './stores/en_US.js';
import { chooseMessage } from './stores/language.js';

appSetup();
initJQueryAjax();

const exploreViewContainer = document.getElementById('js-explore-view-container');
const bootstrapData = JSON.parse(exploreViewContainer.getAttribute('data-bootstrap'));
const localeMessage = chooseMessage();
const controls = getControlsState(bootstrapData, bootstrapData.form_data);
delete bootstrapData.form_data;

Expand All @@ -44,7 +40,6 @@ const bootstrappedState = Object.assign(
triggerQuery: true,
triggerRender: false,
alert: null,
localMessage: localeMessage,
},
);
const store = createStore(exploreReducer, bootstrappedState,
Expand Down

0 comments on commit f7f01df

Please sign in to comment.