Languages.js
Strutured internationalization for Javascript and many frameworks without dependencies
Follow the steps below to start:
Download here and add in your code :
<script src="path/languages.min.js"></script>
<script src="https://unpkg.com/languages-js@latest/languages.min.js"></script>
npm install languages-js --save
yarn add languages-js
bower install languages-js
Follow the steps below to start:
> main.js
> languages
--> en_EN.json
en_EN.json
[{
"hello": "hello world"
},
}]
In main.js
Languages.init('en_EN', './languages/', () => {
'hello'.t() // hello world
});