This small React web app let the user change the UI language without reloading the page.
The localized strings are loaded only when the user switches the language
- Implements react-intl
- Loads the required intl polyfills on Safari and IE < 10
- Uses webpack for splitting the localized data in chunks
Please note this is an EXPERIMENT: see also this issue.
git clone https://github.com/gpbl/react-locale-hot-switch.git
cd react-locale-hot-switch
npm install
# Run the app
npm start
Then visit http://localhost:8080/