ember-i18n-export v1.1.4
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-exportUsage
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/translationsinputFile
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.jsoutputDir
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-translationsoutputFile
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.csvmetaDataFile
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.csvjournalFile
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.csvshowDeletedInJournal
Show/hide deleted translations from the journal file. Defaults to false, you can override this by using the showDeletedInJournal option:
ember-i18n-export --showDeletedInJournalshowOldValueInJournal
Show/hide old translation value from the journal file. Defaults to false, you can override this by using the showOldValueInJournal option:
ember-i18n-export --showOldValueInJournaltranslationKeyColumnName
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_KEYlocaleColumnNames
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\"}