locales.lst

0.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i locales.lst

Weekly Downloads

2

Version

0.0.3

License

ISC

Last publish

Collaborators

  • adjusted