@shopify/react-i18n-universal-provider
![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/@shopify/react-i18n-universal-provider.svg)
A self-serializing/deserializing i18n provider that works for isomorphic applications.
Installation
$ yarn add @shopify/react-i18n-universal-provider
Usage
Props
The component takes an object containing the React children to render and any options to use when configuring the I18nManager
to provide to the tree.
Example
import {I18nUniversalProvider} from '@shopify/react-i18n-universal-provider';
function App({locale}: {locale?: string}) {
return <I18nUniversalProvider locale={locale}>{/* rest of the app */}</I18n>;
}