This package has been deprecated

Author message:

Error

cggl_jsontransformer

1.0.0 • Public • Published

jsonTransformer

This jsonTransformer will take component widget's json configuration file, get relevant key-value pairs and transform them into localization file for that component.

#Usage

node main.js ccConfig.json ccConfig_en.json EN: true true

  • main.js is the file that does the transformation
  • ccConfig.json is the widget's json config file (please ensure that vertical initials added as the prefix of the filename, e.g. cc for Credit Card, pl for Personal Loans)
  • ccConfig_en.json is the filename of the output file, please follow the convention
  • EN: is the language prefix added before the content value
  • json/string is the format inside the output file, either json or string
  • true/false is the flag for whether or not the language prefix should be kept in the output file, recommended usage, true for testing, false for usage at message.properties
  • last true is to enable replace of values with key paths, the output file would be localizedContent.json
  • all parameters are required

Readme

Keywords

none

Package Sidebar

Install

npm i cggl_jsontransformer

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • linybin