Skip to content
JS

Add Internationalization (i18n) to a React app using React Intl

Course on egghead by Damon Bauer

View on egghead (opens in a new tab)
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

Description from egghead

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

11 lessons
  1. 1Install and Configure the Entry Point of react-intl
  2. 2Convert a Hard Coded String using react-intl FormattedMessage
  3. 3Render Content with Placeholders using react-intl FormattedMessage
  4. 4Render Content with Markup Using react-intl FormattedHTMLMessage
  5. 5Format Date and Time Using react-intl FormattedDate and FormattedTime
  6. 6Format a Date Relative to the Current Date Using react-intl FormattedRelative
  7. 7Format Numbers with Separators and Currency Symbols using react-intl FormattedNumber
  8. 8Render Content Based on a Number using react-intl FormattedMessage
  9. 9Use a react-intl Higher Order Component to format messages and get current locale
  10. 10Write tests for react-intl output using enzyme and Jest
  11. 11Use Webpack to Conditionally Include an Intl Polyfill for Older Browsers

Similar React courses

  1. Simplify React Apps with React Hooks

    egghead · Kent C. Dodds · 11 lessons · 4.6 from 55 ratings · Dec 2018

    38 minSubscription
    egghead114.6 (55)Dec 2018
  2. Leverage New Features of React 16

    egghead · Nik Graf · 12 lessons · Sept 2017

    39 minSubscription
    egghead12Sept 2017
  3. Build Virtual Reality Experiences Using React VR

    egghead · Nik Graf · 10 lessons · 3.6 from 2 ratings · Aug 2017

    36 minSubscription
    egghead103.6 (2)Aug 2017
  4. Learn React Router v5

    Codecademy · 1 lessons · Jan 2023

    Beginner1 h
    Codecademy1Jan 2023
  5. Beginner1 h
    Codecademy2Oct 2022
  6. Beginner1 h
    Codecademy1Oct 2022
  7. Build Your First React Website

    Coursera · Harrison Kong · Jun 2020

    Intermediate1 h 30 min
    CourseraJun 2020
  8. Intermediate1 h 30 min
    CourseraSept 2020

A hyphen means the provider's catalogue does not state the value.

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.

    Compare