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.
npm i -g ngx-translate-json-from-properties
$ ngxt-jfp --help
Options:
--help Show help [boolean]
--version Show version number [boolean]
--input, -i input file path
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.
Create a file watcher and configure it. For example: