i18n/I18nDecorator

Adds Internationalization (I18N) support to an application using ilib.

import I18nDecorator from '@enact/i18n/I18nDecorator';

Members

I18nDecoratorHigher-Order Component

A higher-order component that is used to wrap the root element in an app. It provides an rtl member on the context of the wrapped component, allowing the children to check the current text directionality as well as an updateLocale method that can be used to update the current locale.

There are no configurable options on this HOC.

import I18nDecorator from '@enact/i18n/I18nDecorator';
Properties added to wrapped component
className
String

Classname for a root app element.

locale
String

A string with a BCP 47 language tag.

The system locale will be used by default.

ArrayBooleanFunctionModuleNumberObjectString