@twoday/formatjs-scripts
v1.2.0
Published
Extract and compile messages, scan `node_modules` for messages.
Downloads
3
Readme
@twoday/formatjs-scripts
Extract and compile messages, scan node_modules
for messages.
Usage
Add
.gitignore
:# translations /.compiled-lang
Add
package.json
"scripts"
:"prestart": "npm run messages", "prebuild": "npm run messages", "messages": "formatjs-scripts",
Add translations
- Build project or run
npm run messages
- Add translations for available locales next to
lang/<default locale>.json
- Build project
- Build project or run