A tool to manage the translation files of the ceph dashboard.
npm install ceph-dashboard-i18ntoolpush Adds/Updates the resource files
pull Pulls the language files from transifex
merge Adds missing config Configures the i18ntool
help Shows the help dialog
-v Displays the version
i18ntool push -c
i18ntool push
-o, --organization the unique slug of the organization on transifex
-p, --project the unique slug of the project on transifex
-r, --resource the unique name and slug of the resource on transifex. Format must be similar to name:slug
--srcDir, --sourceDirectory (default '.') directory where the source file is expected
--srcFile, --sourceFile (default 'messages.xlf') source file (relative to srcDir)
-a, --automate (default 'false') skips every confirmation dialog with 'yes'
-q, --quiet (default 'false') quiet output. Errors will be displayed
i18ntool pull -c
i18ntool pull
--tarDir, --targetDirectory (default '.') directory where the language files should be stored
-p, --project the unique slug of the project on transifex
-r, --resource the unique name and slug of the resource on transifex. Format must be similar to name:slug
-l, --languages Comma separated list of country codes.
-q, --quiet (default 'false') quiet output. Errors will be displayed
i18ntool merge -c
i18ntool merge
--srcDir, --sourceDirectory (default '.') directory where the source file is expected
--tarDir, --targetDirectory (default '.') directory where the target files are expected (usually identical with srcDir)
--srcFile, --sourceFile (default 'messages.xlf') source file (relative to srcDir)
-l, --languages Comma separated list of country codes. File naming convention: messages..xlf (relative to tarDir)
--removeUnusedIds (default 'true') determine if unused IDs should be removed during merge
-q, --quiet (default 'false') quiet output. Errors will be displayed
i18ntool config
token stores the transifex auth token in the configuration file