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

0.1.4 • Public • Published

📖 React Text Localizer

Tutorial

Tutorial can be found here.

Usage

import { useTranslations, useTranslationsState } from 'react-text-localizer';
import './App.css';
import { translationsContext } from './l10n';

function App() {
  const { welcome } = useTranslations(translationsContext);
  const { isLoading } = useTranslationsState(translationsContext);

  if (isLoading) return null;

  return (
    <div className="App">
      <header className="App-header">
        <p>
          Edit <code>src/App.tsx</code> and save to reload.
        </p>
        <a
          className="App-link"
          href="https://enzomanuelmangano.github.io/text-localizer/"
          target="_blank"
          rel="noopener noreferrer"
        >
          {welcome}
        </a>
      </header>
    </div>
  );
}

export default App;

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i react-text-localizer

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

15.1 kB

Total Files

26

Last publish

Collaborators

  • enzomanuelmangano