@zeesoft/zlitt-sync
v1.4.7
Published
CLI library to connect with zLiTT to localize and sync project resources
Downloads
192
Maintainers
Readme
zlitt-sync tool usage guide
- Development usage
yarn install
yarn sync
- after making any changes make sure to run build and obtain tarball
yarn build
yarn pack
- for publishing
yarn | npm login
to the npmyarn publish --access public
- .zsyncrc configuration file (json structure)
- add
.zsyncrc
file to your project directory and add the following configurations productInfo
obtain from zLiTT of your product name and descriptionsetupInfo
obtain from zLiTT for setup setps with detailsaccessToken
obtain from zLiTTenv
should be one of prod, dev, local where accessToken is obtainedlocales
array of locales for which translations to be managed by zlitt-syncinputFiles
array of source resource file paths [glob pattern is also supported]customExportName
use custom file names for localization resource files as configured in zLiTTuntranslatedThreshold
auto create a localization during sync process if untranslated words count is greater than thresholdmachineT9n
machine 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
sync
api for programmatical usage
- CLI usage
- install as global package
npm i -g zlitt-sync or <tarball.tgz>
get the tarball link from zeesoftzlitt-sync --sync
to pull latest translations from zLiTT and create a Translation project if untranslated count threshold is reached--debug
and--log-file
options can be supplied to get more verbose information
TODO
- [x] add support for custom export file name mapping in zLiTT