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
- Node
- npm
- git
git clone
cd react-intl-example
npm install
npm run dev