Skip to content

Instantly share code, notes, and snippets.

@theodesp
Created November 16, 2019 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/452e311364123f55b5b1bc23c042d5e3 to your computer and use it in GitHub Desktop.
Save theodesp/452e311364123f55b5b1bc23c042d5e3 to your computer and use it in GitHub Desktop.
import { I18nProvider } from '@lingui/react';
import catalogEl from './locales/el/messages.js';
import catalogEn from './locales/en/messages.js';
const catalogs = { en: catalogEn, el: catalogEl };
ReactDOM.render(
<I18nProvider
language={i18nConfig.locale}
catalogs={catalogs}
>
<Home name={'React.js'}/>
</IntlProvider>, document.getElementById('root'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment