registerForIntl

A method which registers a component class or a functional stateless component for internationalization. When a component of that type is a direct or indirect child of IntlProvider, the locale of the provider is used. Otherwise, uses en as a default locale.

Parameters

component

ComponentClass

The React component class that will use the internationalization methods.

In this article

Not finding the help you need?