@vroskus/lerna-i18next-aggregator
v1.0.12
Published
Tool to aggregate translations from all lerna packages
Downloads
99
Readme
@vroskus/lerna-i18next-aggregator
Tool to aggregate translations from all lerna packages. Aggregator scans lerna packages - .js and .pug files and extracts t('') function values.
Installation
Call:
npm install -D @vroskus/lerna-i18next-aggregator
yarn add -D @vroskus/lerna-i18next-aggregator
Usage
- Just run
lerna-i18next-aggregator <languages> <resource files directory path> <lerna packages directory path>
:
Args:
comma separated ISO 639-1 codes
en,es,lt
a path to directory containing json files with translations. File names must match lerna package names. Only packages with matching resource file name will be processed.
common.json
package-a.json
package-b.json
...
a path to directory containing lerna packages
...
packages/
package-a/
package-b/
...
...