ngx-translate-utils

1.1.2 • Public • Published

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.

Package Sidebar

Install

npm i ngx-translate-utils

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

29.6 kB

Total Files

10

Last publish

Collaborators

  • binaryops.mark