# medet-lang

> Easy language package

Latest version **1.0.0** (published 2022-10-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install medet-lang
pnpm add medet-lang
yarn add medet-lang
bun add medet-lang
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-10-31 |
| First published | 2022-10-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Medet Kadyrov |
| Maintainers | bekich97 |
| Keywords | react, language, lang, react-component, translation |

## Links

- npm: https://www.npmjs.com/package/medet-lang
- Repository: https://github.com/bekich97/medet-lang
- Issues: https://github.com/bekich97/medet-lang/issues
- npm.io page: https://npm.io/package/medet-lang

## 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

- 1.0.0 (latest) — 2022-10-31

## README

# medet-lang

> Easy language package

[![NPM](https://img.shields.io/npm/v/medet-lang.svg)](https://www.npmjs.com/package/medet-lang) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save medet-lang
```

## Usage

```json
{
    "test": {
        "en": "Test",
        "ru": "Тест",
        "tm": "Barlag"
    },
    "home": {
        "en": "Home",
        "ru": "Главная",
        "tm": "Baş sahypa"
    }
}
```

Then

```jsx
import React, { Component } from 'react'

import EasyLang from 'medet-lang'
import 'medet-lang/dist/index.css'

// Import Lang dictionary
import jsonFile from './lang.json';

class Example extends Component {
  const _ = (text) => EasyLang({lang: "tm", jsonFile: jsonFile, text: text});
  render() {
    return _("test");
  }
}
```

## License

MIT © [bekich97](https://github.com/bekich97)

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