react-i18not
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

react-i18not

Minimalist i18n library. (React)

npm npm NPM

Example usage

Make sure to first initalize the library, see i18not for more info.

import React from 'react';
import { useTranslation } from 'react-i18not';

export const HelloWorld: React.FC = () => {
  const { t } = useTranslation();

  return <div>{t('hello')}</div>;
};

Package Sidebar

Install

npm i react-i18not

Weekly Downloads

8

Version

0.1.1

License

BSD-3-Clause-Clear

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • mat-sz