An open API service indexing awesome lists of open source software.

https://github.com/dbwodlf3/simple-mus

Simple Multilingual Support in Client Side
https://github.com/dbwodlf3/simple-mus

Last synced: 3 months ago
JSON representation

Simple Multilingual Support in Client Side

Awesome Lists containing this project

README

        

This is very simple client side translator for multilingual support.
just use it very simple.

===========================================================================

Install

Node
```bash
npm i simple-mus
```

CDN
```html

```

Download
link: ...
```html

```

===========================================================================

Usage
```html

Hello


```

===========================================================================
```js
const language_maps = {
ko: {
"Hello": "안녕하세요"
},
jp: {
"Hello": "こんにちは"
},
cn: {
"Hello" : "你好"
}
};

const simple_ms = simpleMUS();

window.addEventListener("DOMContentLoaded", ()=>{
setLanguageCode("ko");
simple_ms.translate(language_maps);
});

```

```html

Hello


```

```html

안녕하세요


```

```html

こんにちは


```

```html

你好


```