glints-collate-message
v0.0.7
Published
To collate formatted messages from Glints front end projects for translation (i18n) uses.
Downloads
310
Readme
glints-collate-message
To collate formatted message from Glints front end projects for translation (i18n) uses.
Install
npm i glints-collate-message
Usage
$ glints-collate-message command rootDirectory -c configFile -r reserveFile -d dynamicFile -l logFolder
command
- reserve (generate a file with a list of dynamic FormattedMessage id's and their corresponding defaultMessage's in .i18n/dynamic.json)
- collate
optional
- -d (default: .i18n/dynamic.json)
- -l (default: .i18n)
Example
- $ glints-collate-message reserve app -d dynamic.json -l .i18n
- $ glints-collate-message collate app -c config.json -r reserve.json -l .i18n
After adding new FormattedMesssages, do this:
- run
reserve
- refer to .i18n/dynamic.json
- manually update my self-maintained reserve file
- run
collate
command - if error, obey the commands spewed out by the tool. Otherwise, it'll update the s3 files
- profit!