Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb8005 authored Aug 20, 2021
1 parent 584e055 commit 1aa9a44
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ import I18nService from '@nexys/react-i18n';
const i18n = new I18n(); // this needs to be done once
export default () => (<Wrapper i18n={i18n}>
<p>{i18n.translate('myStringToBeTranslated')}
</Wrapper>);
const UI = () => <p>{i18n.translate('myStringToBeTranslated')}</p>;
export default Wrapper(i18n, UI);
```

see https://github.com/nexys-system/react-i18n/blob/master/src/app.tsx for more information.

0 comments on commit 1aa9a44

Please sign in to comment.