Add Internationalization (i18n) to a React app using React Intl
Course on egghead by Damon Bauer
- 38 min
- LengthVideo runtime
- Subscription
- Price modelegghead plan
- 11
- Lessons
- 5.0
- Rating out of 53 ratings on egghead
- Jul 2017
- Published27 Jul 2017
About this course
In this course, we will incorporate react-intl into a project created with create-react-app and react-router. The react-intl library makes complex tasks such as internationalization and formatting dates & currency incredibly simple. Another huge benefit of react-intl is that it gives you the ability to centralize the content across your application into language specific files. This creates a consistent place to find content and encourages reuse. If you’ve ever used language specific yml files in Rails, you’re already familiar with this pattern. Starting with the entry point of the application, we will hit the ground running by adding the necessary components and data structures required for react-intl to function. From there, we will use react-intl components to format various types of data including strings, dates, and numbers.
What it covers
- 1Install and Configure the Entry Point of react-intl
- 2Convert a Hard Coded String using react-intl FormattedMessage
- 3Render Content with Placeholders using react-intl FormattedMessage
- 4Render Content with Markup Using react-intl FormattedHTMLMessage
- 5Format Date and Time Using react-intl FormattedDate and FormattedTime
- 6Format a Date Relative to the Current Date Using react-intl FormattedRelative
- 7Format Numbers with Separators and Currency Symbols using react-intl FormattedNumber
- 8Render Content Based on a Number using react-intl FormattedMessage
- 9Use a react-intl Higher Order Component to format messages and get current locale
- 10Write tests for react-intl output using enzyme and Jest
- 11Use Webpack to Conditionally Include an Intl Polyfill for Older Browsers
Similar React courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.