/react-locale-hot-switch

Small React web app showing how to change the UI language without reloading the page.

Primary LanguageJavaScript

react-locale-hot-switch

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/