nymus can be configured to your needs
Configures the locale to be used for the Intl.* formatters and pluralrules. The locale is directly inserted in the constructor of these objectes. e.g.
nymus --locale ru ./ru/strings.json
By using the --locale option, the generated components will use formatters that are constructed like so:
const numberFormat = new Intl.NumberFormat('ru');
Emit typescript files instead of javascript
nymus --typescript ./strings.json
This will result in the creaton of a .ts file ./strings.ts containing typed components for the strings in ./strings.json.
declarationsEmit .d.ts declaration files next to the messageformat files.
nymus --declarations ./strings.json
This will result in the creaton of a .d.ts file ./strings.d.ts containing declarations for the componets in ./strings.js.
Important!: nymus only has a peerDependency on typescript. In order for this function to work, a typescript compiler needs to be installed in your project.