1.0.1 • Published 7 years ago
lang3 v1.0.1
lang3
Localization package from 011systems.
Installation
$ npm install --save lang3
Hello World Example
- create ./lang dir in project root
- in src file index.js
import {_} from 'lang3'; _("[ctx] Hello World!")
- run command from root dir
translate strings in ./lang/de.js./node_modules/.bin/lang.php ./lang/de.js ./src/index.js >> ./lang/de.js
import lang file "de.js" in your project"[ctx] Hello World!" : "Hallo Welt"
<script src="./lang/de.js"></script>
License
ISC
1.0.1
7 years ago