-
- Downloads
Initial version of loading or switching language.
Add `?locale=<localecode>` to load in a new langage. Add `?enable=language` to enable the language selector Or combine the two: `?enable=language&locale=<localecode>` Still accepts a hash, but requires that the hash be a sequence of digits. Added new locales reducer to gui: - initializes default react-intl/localeData - initializes default locale messages for all locales - default locale is ‘en’ (can be overridden by URL) Removed dependency on react-intl-redux, added ConnectedIntlProvider (uses correct locale messages from redux based on current locale)
Showing
- package.json 0 additions, 1 deletionpackage.json
- src/containers/blocks.jsx 16 additions, 5 deletionssrc/containers/blocks.jsx
- src/containers/language-selector.jsx 10 additions, 4 deletionssrc/containers/language-selector.jsx
- src/containers/menu.jsx 6 additions, 1 deletionsrc/containers/menu.jsx
- src/index.js 2 additions, 3 deletionssrc/index.js
- src/lib/app-state-hoc.jsx 10 additions, 13 deletionssrc/lib/app-state-hoc.jsx
- src/lib/connected-intl-provider.jsx 10 additions, 0 deletionssrc/lib/connected-intl-provider.jsx
- src/lib/hash-parser-hoc.jsx 2 additions, 2 deletionssrc/lib/hash-parser-hoc.jsx
- src/playground/intl.js 0 additions, 19 deletionssrc/playground/intl.js
- src/reducers/gui.js 18 additions, 0 deletionssrc/reducers/gui.js
- src/reducers/intl.js 0 additions, 14 deletionssrc/reducers/intl.js
- src/reducers/locales.js 53 additions, 0 deletionssrc/reducers/locales.js
- test/unit/util/hash-project-loader-hoc.test.jsx 12 additions, 4 deletionstest/unit/util/hash-project-loader-hoc.test.jsx
Loading
Please register or sign in to comment