ngx-translate-utils
v1.1.2
Published
Sync ngx-translate json language files to and from CSV; Generate a Typescript file that returns language file keys.
Downloads
11
Maintainers
Readme
ngx-translate-utils
Utilities for working with ngx-language files
to-csv
Copy all language files to a common CSV file with flattened keys. This makes it easier to translate strings for different languages.
Usage
usr/bin/node index to-csv -p ./sample -l en -o ./sample
from-csv
Copy from a common CSV file into the distinct language JSON files.
/usr/bin/node index from-csv --path ./sample/lang_sync.csv
Usage
/usr/bin/node index make-ts -p ./sample -l en -o ./sample
make-ts
Create a Typescript file where the nested object structure matches the translation JSON files. Using this will eliminate the large number of language related string literals scattered throughout a project. Allows for code completion and refactoring of language keys.
Usage
/usr/bin/node index make-ts -p ./sample -l en -o ./sample
Installation
$ npm install ngx-translate-utils --save-dev
Need Support?
ngx-translate-utils is a software development project by BinaryOps Software Inc.