1.0.1 • Published 2 years ago

@pascholda1/vue-cli-plugin-i18n-csv-exchange v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Vue CLI Plugin i18n CSV exchange

This plugin can export nested localization JSON files to CSV and import CSV localization files back to JSON.

Installation

npm i --save-dev @pascholda1/vue-cli-plugin-i18n-csv-exchange 
vue invoke vue-cli-plugin-i18n-csv-exchange

Usage

To create / update CSV files based on your JSON files:

npm run i18n-export-csv

To create / update JSON files based on your CSV files:

npm run i18n-import-csv

Examples

i18n-export-csv

reads nested JSON Files like:

{
	"questions": {
		"answer": {
			"yes": "Yes",
			"no": "No"
		}
	}
}

will create a CSV like:

questions.answer.yes,Yes
questions.answer.no ,No

i18n-import-csv

reads a CSV File like that:

questions.answer.yes,Yes
questions.answer.no ,No

and adds the second column's values to the first column's object path.

1.0.1

2 years ago

1.0.0

2 years ago