0.1.1 • Published 4 years ago
@samatech/i18n-json v0.1.1
i18n JSON
CLI tool for converting i18n translation files between json and csv.
WARNING - this tool is not well tested yet, and not recommended for production use. It overrides files, so make sure you're using version control!
Usage
We recommend PNPM for reducing disk usage and speeding up installation for Javascript/Typescript projects.
npm may be substituted with pnpm in the following commands:
Install
pnpm installRun tests
pnpm run testBuild library
pnpm run buildRun on local project
Convert single JSON file to CSV
node ./bin/i18n-json.js -i ./test/json/translations/en.json -o ./test/outputConvert folder of JSON files to CSV, with en.json fallback
node ./bin/i18n-json.js -i ./test/json/translations -o ./test/output -f en.jsonConvert CSV to JSON
node ./bin/i18n-json.js -i ./test/csv/translations/en.csv -o ./test/output
node ./bin/i18n-json.js -i ./test/csv/translations/en_kr.csv -o ./test/output0.1.1
4 years ago