vue-csv-translation-helper
v0.0.8
Published
Made with kumbocli.
Downloads
9
Readme
Vue CSV Translation Helper
Convert JSON locales to CSV.
⏪ back and forth ⏩
Overview 👀
JSON to CSV
// languages/en.json
// -----------------
{
"title": "Homepage"
}
// languages/de.json
// -----------------
{
"title": "Startseite"
}
$ vue-csv-translation-helper -i languages -o output -l en de -d ","
# output/translation.csv
# ----------------------
key,en,de
title,Homepage,Startseite
Installation 💻
$ npm i vue-csv-translation-helper
or
$ yarn add vue-csv-translation-helper
Run the Examples 🏃🏽♀️
$ bin/vue-csv-translation-helper -i examples/example-1/inputs -o examples/example-1/outputs/ -l de en
$ bin/vue-csv-translation-helper -i examples/example-2/inputs/translations.csv -o examples/example-2/outputs -l en de -d ";"
Usage 📖
Usage: vue-csv-translation-helper [options]
Made with kumbocli.
Options:
-V, --version output the version number
-i, --input <DIRECTORY | FILENAME> set the input to either a DIRECTORY or a FILE - allowed filetypes (.csv | .json)
-o, --output <DIRECTORY | FILENAME> set the output to either a DIRECTORY or a FILE - allowed filetypes (.csv | .json)
-l, --language-codes <codes...> set the language codes for the languages you want to process (default: ["en","de"])
-d, --delimiter <CHAR> set the CSV delimiter (default: ",")
-h, --help display help for command