1.1.4 • Published 5 years ago

ember-i18n-export v1.1.4

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

ember-i18n-export

This npm package consolidates ember-i18n translation files into a single csv file, This is useful when sending translations to a translation department. This npm package also produce a separate file that contains meta data about translations such number of words and number of translation keys.

Installing

npm install ember-i18n-export

Usage

Run the following command from the root of your project:

ember-i18n-export <options>

Options

inputDir

By default the translations are looked up from the app/locales folder, you can override this by using the inputDir option.

ember-i18n-export --inputDir locale/translations

inputFile

By default the translations are looked up from the translation.js file, you can override this by using the inputFile option.

ember-i18n-export --inputFile trans.js

outputDir

By default the csv files are generated in the i18n-exports folder, you can override this by using the outputDir option:

ember-i18n-export --outputDir locale-translations

outputFile

By default the csv file containing the consolidates translations is named translation.csv, you can override this by using the outputFile option:

ember-i18n-export --outputFile translations-export.csv

metaDataFile

By default the csv file containing the meta data about the translations is named translation-meta.csv, you override this by using the outputMetaDataFile option:

ember-i18n-export --outputMetaDataFile translations-export-meta.csv

journalFile

By default the csv file containing the journal information is named translation-updates-${timestamp}.csv, you can override this by using the journalFile option:

ember-i18n-export --journalFile translations-updates.csv

showDeletedInJournal

Show/hide deleted translations from the journal file. Defaults to false, you can override this by using the showDeletedInJournal option:

ember-i18n-export --showDeletedInJournal

showOldValueInJournal

Show/hide old translation value from the journal file. Defaults to false, you can override this by using the showOldValueInJournal option:

ember-i18n-export --showOldValueInJournal

translationKeyColumnName

By default the translationKey is displayed as the SYSTEM_KEY in csv file, you can override this by using the translationKeyColumnName:

ember-i18n-export --translationKeyColumnName TRANSLATION_KEY

localeColumnNames

By default each locale is represented by the locale column in the csv file, you override by using the localeColumnNames option:

ember-i18n-export --localeColumnNames {\"en\":\"English\",\"fr\":\"French\"}
1.1.4

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago