@bmat/translation-management
v0.0.6
Published
Manage Front-End translations from multiple sources
Downloads
42
Readme
Vericast Front-End translation management
This package handles all front-end translations sources, at the moment Preact, Angular and i18next, merging them in a single XLIFF 1.2 file.
Once the translations of the XLIFF 1.2 file is done, the package takes care of splitting the file between resources to minimize the size of the bundles.
Installation
This is a standard Node v8+ package. Just add @bmat/translation-management
to package.json
.
Testing
Run the command
npm run test
An Jest watch session will launch.
To run the tests once, like in a CI environment, run
npm run test:ci
Coverage data will be saved in the coverage
folder.
Build
Run
npm run build
To compile the Typescript files to JavaScript. The destination folder is dist
. This folder will be exported when publishing the package.