# react-native-translate

> Simple translate package for own needs

Latest version **0.0.2** (published 2017-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-translate
pnpm add react-native-translate
yarn add react-native-translate
bun add react-native-translate
```

## 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.0.2 |
| Published | 2017-05-11 |
| First published | 2017-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Maksim Romanyuk |
| Maintainers | candyogre |
| Keywords | react, react-native, translate |

## Links

- npm: https://www.npmjs.com/package/react-native-translate
- Repository: https://github.com/CandyOgre/react-native-translate
- Issues: https://github.com/CandyOgre/react-native-translate/issues
- npm.io page: https://npm.io/package/react-native-translate

## Dependencies (1)

- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.6.1

## 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.0.2 (latest) — 2017-05-11
- 0.0.1 — 2017-05-11
- 1.0.1 — 2017-05-11

## README

# React Native Translate

## Usage

1. `yarn add react-native-translate`
2. Create `json` file with your translation like this: 
```json
{
  "email": "Електронна пошта"
}
```
3. Set localization file in your `index.js`:
```js
import ukTranslation from './src/localization/uk.json';
import { setLocalization } from 'react-native-translate';

setLocalization(ukTranslation);
```
4. Use translation: 
```jsx
import { translate, Translate } from 'react-native-translate';

translate('email') // returns 'Електронна пошта'
// Or
<Translate value="email" /> // renders <Text>Електронна пошта</Text>
```
3. If you want to run tests: `npm test` or `npm run testonly` or `npm run test-watch`.
4. If you want to run linting: `npm test` or `npm run lint`. Fix bugs: `npm run lint-fix`.
5. If you want to run transpilation to ES5 in `dist` folder: `npm run prepublish` (standard npm hook).


## License

MIT

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