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
- Host: GitHub
- URL: https://github.com/dbwodlf3/simple-mus
- Owner: dbwodlf3
- Created: 2022-01-13T09:59:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-14T03:05:48.000Z (over 3 years ago)
- Last Synced: 2025-02-05T18:09:04.010Z (4 months ago)
- Language: TypeScript
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
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
```htmlHello
```===========================================================================
```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
你好
```