4.0.0 • Published 4 years ago

@sideroad/react-i18n v4.0.0

Weekly downloads
67
License
MIT
Repository
github
Last release
4 years ago

How to use in next.js 10?

Initialize i18n

_app.tsx

import { init, Provider } from '@sideroad/react-i18n';

...

render() {
  const i18n = init({
    lang: this.props.router.locale,
    locales,
  });

  return (
    <Provider value={i18n}>
      ...
    </Provider>
  );
}

Usage

import I18n from '@sideroad/react-i18n';

const Component = () => <I18n id="hello" />;

LICENSE

MIT

4.0.0

4 years ago

3.0.1

5 years ago

2.2.4

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.32

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.27

6 years ago