locales.lst
Generate locale json files from a single list file
Installation
npm install locales.lst
Usage
A sample input list file (sample.lst)
# this is comment
en zh
hello
- Hello
- 你好
world
- World
- 世界
Run locales.lst
./node_modules/locales.lst/cli.js sample.lst locales # local installation
locales.lst sample.lst locales # npm install locales.lst -g
Output json files
locales/en.json
{"hello":"Hello","world":"World"}
locales/zh.json
{"hello":"你好","world":"世界"}
License
ISC