4.0.0 • Published 3 years ago

@sideroad/react-i18n v4.0.0

Weekly downloads
67
License
MIT
Repository
github
Last release
3 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

3 years ago

3.0.1

4 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.32

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.27

5 years ago