Skip to content

matthewurch/ngx-translate-json-from-properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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