open-index/open-npm huggingface dataset:
npm package: @kotinash/lang-parser
Description: A library to parse .lang files!
Author: kotinash
Latest version: 1.0.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# lang-parser
A library to parse .lang files!

### Example usages

#### JS

```js
const langParser = require("@kotinash/lang-parser")

const langString = `"hello.world": "Hello, World"`

console.log(langParser.parseJson(langString)) // Output: { hello: { world: 'Hello, World' } }
```

```js
const langParser = require("@kotinash/langparser")

const langString = `"hello.world": "Hello, World"`

console.log(langParser.parseRaw(langString)) // Output: { "hello.world": "Hello, World" }
```

```js
const langParser = require("@kotinash/lang-parser")

const langString = `"hello.world": "Hello, World"`

console.log(langParser.getKey("hello.world", langParser.parseRaw(langString))) // Output: Hello, World
console.log(langParser.getKey("hello.world", langParser.parseJson(langString)); // "Hello, World"
```

#### TS

```ts
import { parseJson } from "@kotinash/lang-parser"

const langString = `hello.world=Hello, World` 

console.log(parseJson(langString)); // Output: { hello: { world: 'Hello, World' } }
```

```ts
import { parseRaw } from "@kotinash/lang-parser"

const langString = `hello.world=Hello, World` 

console.log(parseRaw(langString)); // Output: { "hello.world": 'Hello, World' }
```

```ts
import { getKey, parseRaw, parseJson } from "@kotinash/langparser"

const langString = `hello.world=Hello, World` 

console.log(getKey("hello.world", parseRaw(langString)); // "Hello, World"
console.log(getKey("hello.world", parseJson(langString)); // "Hello, World"
```
npm package: @kotlia/jp.js
Description: Japanese transliteration library
Author: Kotlia
Latest version: 1.0.2

<h1 align="center">Welcome to @kotlia/jp.js 👋</h1>
<p>
  <a href="https://www.npmjs.com/package/@kotlia/jp.js" target="_blank">
    <img alt="Version" src="https://img.shields.io/npm/v/@kotlia/jp.js.svg">
  </a>
  <a href="https://github.com/Kotlia/jp.js#readme" target="_blank">
    <img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
  </a>
  <a href="https://github.com/Kotlia/jp.js/graphs/commit-activity" target="_blank">
    <img alt="Maintenance" src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" />
  </a>
  <a href="https://github.com/Kotlia/jp.js/blob/master/LICENSE" target="_blank">
    <img alt="License: MIT" src="https://img.shields.io/github/license/Kotlia/@kotlia/jp.js" />
  </a>
  <a href="https://twitter.com/\_Kotlia" target="_blank">
    <img alt="Twitter: \_Kotlia" src="https://img.shields.io/twitter/follow/\_Kotlia.svg?style=social" />
  </a>
</p>

> Japanese transliteration library

### 🏠 [Homepage](https://github.com/Kotlia/jp.js#readme)

## Install

```sh
yarn install
```

## Author

👤 **Kotlia**

* Twitter: [@_Kotlia](https://twitter.com/\_Kotlia)
* Github: [@Kotlia](https://github.com/Kotlia)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!<br />Feel free to check [issues page](https://github.com/Kotlia/jp.js/issues). You can also take a look at the [contributing guide](https://github.com/Kotlia/jp.js/blob/master/CONTRIBUTING.md).

## Show your support

Give a ⭐️ if this project helped you!

## 📝 License

Copyright © 2020 [Kotlia](https://github.com/Kotlia).<br />
This project is [MIT](https://github.com/Kotlia/jp.js/blob/master/LICENSE) licensed
npm package: @kotlia/react-i18n-auto
Description: A simple react component to automatically translate string component with Google Translate API.
Author: Shun Ueda
Latest version: 1.0.1

# react-i18n-auto

> A simple react component to automatically translate string component with Google Translate API - without API Key.



### Quick Example

```javascript
import React, { Component } from "react"
import Translator, { translate } from 'react-i18n-auto'

export default class Page extends Component {

    render() {
    
        const T = Translator({from: "en"});
        
        console.log(translate("Hello, world", { from: "en", to: "fr" }));  // => "Bonjour le monde"
        
        return (
            <>
                <T>Hello, world</T>  // Text enclosed by "T" (in this case) will be translated.
            </>
        );
        
    }
    
}
```



### Docs

**Translator({ from: *string*, to: *string | undefined* })**

Creates translator.

> **from**:	Language code of the original language.  
> **to**:	Force language to be converted to. By default, text will be translated to the browser language. (```navigator.language```)