1.1.0 • Published 4 years ago

ngx-translate-json-from-properties v1.1.0

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

Summary

Angular applications that use ngx-translate often store the translations in json files. Editing those files manually isn't ideal. Especially when compared to using IntelliJ Resource Bundles.

This node.js module converts properties files to simple json. This allows you to write your language files as a resource bundle using File Watchers to automatically call this module.

Installation

npm i -g ngx-translate-json-from-properties

Usage

$ ngxt-jfp --help
Options:
  --help          Show help                                            [boolean]
  --version       Show version number                                  [boolean]
  --input, -i     input file path

IntelliJ

Project Structure

Create your language properties files (i18n-lang.properties), such as i18n-en-CA.properties. IntelliJ will now let you edit these together at once as a Resource Bundle.

File Watcher

Create a file watcher and configure it. For example:

example file watcher configuration