Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.txt

Script csv2locales.js.js will convert CSV files to JSON resources for i18next library.

Requres: 
1) node.js
2) input files should be CSV in UTF-8 format
	see examples in input_csv directory
3) csv modeule for node.js
	Use for installation: 
	npm install csv
4) yamljs modeule for node.js
	Use for installation: 
	npm install yamljs
4) configure modeule for node.js
	Use for installation: 
	npm install configure


Configuration file:
It defines input and output directories
See example config.json

Running:
node csv2locales.js [--config <config file>]
If the --config switch is not included as a command line parameter, "config.json" in the current working directory will be used

Example:
node csv2locales.js --config config.json 




About

Convert CSV files to JSON & YAML for i18next.js and Rails

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.