Skip to content

localizely/react-intl-example

Repository files navigation

The react-intl example

demo

This project is a tutorial on how to do internationalization (i18n) in React projects with the react-intl library.

It contains examples for:

  • The IntlProvider config
  • Detection of the user's preferred language
  • Loading translations dynamically
  • Language switcher
  • Setting text direction (ltr, rtl)
  • Declarative usage of the react-intl library
  • Imperative usage of the react-intl library

For more details, please see the full post: React-Intl tutorial

Requirements

  • Node
  • npm
  • git

Steps to get the app running

  • git clone
  • cd react-intl-example
  • npm install
  • npm run dev