Created
December 13, 2017 21:08
-
-
Save rxluz/a0705f511194cb93c862e341f6f8386e to your computer and use it in GitHub Desktop.
Wrapping your application with Redux i18n
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///.... your other imports | |
import I18n from 'redux-i18n'; | |
import { translations } from '__src__/config/locales/index'; | |
ReactDOM.render( | |
<Provider store={store}> | |
<I18n translations={translations} initialLang="en" fallbackLang="en"> | |
<App /> | |
</I18n> | |
</Provider>, | |
document.getElementById('app') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment