0.0.3 • Published 9 years ago

locales.lst v0.0.3

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

locales.lst Build Status

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