@zeesoft/zlitt-sync
v1.5.5
Published
CLI library to connect with zLiTT to localize and sync project resources
Maintainers
Readme
zlitt-sync tool usage guide
- Development usage
yarn installyarn sync- after making any changes make sure to run build and obtain tarball
yarn buildyarn pack - for publishing
yarn | npm loginto the npmyarn publish --access public
- .zsyncrc configuration file (json structure)
- add
.zsyncrcfile to your project directory and add the following configurations productInfoobtain from zLiTT of your product name and descriptionsetupInfoobtain from zLiTT for setup setps with detailsaccessTokenobtain from zLiTTenvshould be one of prod, dev, local where accessToken is obtainedlocalesarray of locales for which translations to be managed by zlitt-syncinputFilesarray of source resource file paths [glob pattern is also supported]customExportNameuse custom file names for localization resource files as configured in zLiTTuntranslatedThresholdauto create a localization during sync process if untranslated words count is greater than thresholdmachineT9nmachine translation will translate source string in target language on initial process itself to avoid showing English string to customer
- Library usage
- install zlitt-sync as your project dev dependency
npm i -g zlitt-sync or <tarball.tgz>get the tarball link from zeesoft- zlitt-sync module exposes
syncapi for programmatical usage
- CLI usage
- install as global package
npm i -g zlitt-sync or <tarball.tgz>get the tarball link from zeesoft.zlitt-sync --vendor-processorzlitt-sync -vL10n files will get processed with latest translations from zLiterati and additionally creates a Vendor project in zLiterati when untranslated threshold exceeds the configured value.zlitt-sync --localization-processorzlitt-sync -lL10n files will get processed with latest translations from zLiterati and applies MT in the absence of t9n. It will create a Localization project in zLiterati when untranslated threshold exceeds the configured value.--debugand--log-fileoptions can be supplied to get more verbose information.
