handle messages better
Dynamic import didn’t do what we wanted, so just added `npm run i18n:msgs` to the start command. This is just temporary. Other changes as requested: * exports in one place * loc=> locale Also fixed use of require for localeData to use dynamic import (this one works), so the babelrc changes are needed, otherwise import as a function is not recognized.
Showing
- .babelrc 1 addition, 0 deletions.babelrc
- package.json 2 additions, 1 deletionpackage.json
- src/components/language-selector/language-selector.jsx 4 additions, 4 deletionssrc/components/language-selector/language-selector.jsx
- src/reducers/intl.js 6 additions, 7 deletionssrc/reducers/intl.js
- webpack.config.js 1 addition, 9 deletionswebpack.config.js
Loading
Please register or sign in to comment