# @dlghq/react-l10n

> Localization for React components

Latest version **0.9.5** (published 2019-08-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dlghq/react-l10n
pnpm add @dlghq/react-l10n
yarn add @dlghq/react-l10n
bun add @dlghq/react-l10n
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.5 |
| Published | 2019-08-29 |
| First published | 2016-07-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 20.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nikita Gusakov |
| Maintainers | a.kozlov.dlg, alexeyboyko, arturtakoev, d.eremin, daarien, dialogs, dlg_ademin, dlghq-bot, dmitriyubagrov92, dmitrytam, elinrin, ke1evra, m.eremina, m.zhadko, matveyneyman, meafmira, mnasyrov, n.mochkar, nkt, olegshilov, p.gosteev, prettynatty, pvlv, recluse, rtyurin, scrobot, shabanov_dlg, solarlizard, tsurkov, userbq201, vladlex, yakupov.bulat, zebrapolly |
| Keywords | react, react-component, l10n, i18n |

## Links

- npm: https://www.npmjs.com/package/@dlghq/react-l10n
- npm.io page: https://npm.io/package/@dlghq/react-l10n

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.5.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.9.5 (latest) — 2019-08-29
- 0.9.4 — 2019-07-01
- 0.9.3 — 2018-11-27
- 0.9.3-0 — 2018-11-23
- 0.9.2 — 2018-10-11
- 0.9.1 — 2017-11-20
- 0.9.0 — 2017-11-19
- 0.8.0 — 2017-11-16
- 0.7.4 — 2017-05-04
- 0.7.3 — 2017-05-04
- 0.7.2 — 2017-05-01
- 0.7.1 — 2017-01-23
- 0.7.0 — 2017-01-20
- 0.6.0 — 2016-11-16
- 0.5.1 — 2016-10-18
- … 8 more at https://npm.io/package/@dlghq/react-l10n/versions

## README

# React localization

Localization for React components

## Installation

```
npm install --save react
npm install --save @dlghq/react-l10n
```

## Usage

```js
import React from 'react';
import { render } from 'react-dom';
import { Provider, Text } from '@dlghq/react-l10n';

const messages = {
  'en-US': { hello: 'Hello' },
  'ru-RU': { hello: 'Привет' },
};

function Application() {
  return (
    <Provider messages={messages} locale={navigator.language}>
      <Text id="hello" className="text" tagName="p" />
    </Provider>
  );
}

const container = document.getElementById('container');

render(<Application />, container);
```

[More examples in tests](test/index.js)

## License

[Apache-2.0](LICENSE)

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