# react-text-localizer

> A lightweight, fast and flexible way to handle localized strings in React

Latest version **0.1.4** (published 2022-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-text-localizer
pnpm add react-text-localizer
yarn add react-text-localizer
bun add react-text-localizer
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2022-02-05 |
| First published | 2021-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | Enzo Manuel Mangano |
| Maintainers | enzomanuelmangano |
| Keywords | localization, react, l10n, i18n |

## Links

- npm: https://www.npmjs.com/package/react-text-localizer
- Repository: https://github.com/enzomanuelmangano/text-localizer
- Homepage: https://github.com/enzomanuelmangano/text-localizer#readme
- Issues: https://github.com/enzomanuelmangano/text-localizer/issues
- npm.io page: https://npm.io/package/react-text-localizer

## Dependencies (1)

- [text-localizer](https://npm.io/package/text-localizer.md) ^0.1.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2022-02-05
- 0.1.3 — 2021-10-21
- 0.1.2 — 2021-10-17
- 0.1.1 — 2021-10-14

## README

<h1 align="center">
📖 React Text Localizer
</h1>

## Tutorial

[**Tutorial can be found here**](https://enzomanuelmangano.github.io/text-localizer/docs/basic-tutorial/react/setup).

## Usage

```tsx
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](https://github.com/enzomanuelmangano/text-localizer/blob/main/CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---
_Source: https://npm.io/package/react-text-localizer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
