Convert input formats (e.g., Rails i18n YAML) into messageformat-compatible JSON. Version 0.4.0 is the latest stable release. The package is part of the messageformat ecosystem but has seen no recent updates or releases. It supports Node.js >=6.0 and converts Rails-style nested key-value pairs into flat message format strings. Note that this package does not handle MessageFormat 2.0 (MF2) syntax, only the legacy ICU MessageFormat format used by messageformat 2.x and 3.x.
npm install messageformat-convertNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to convert Rails i18n YAML to messageformat-compatible JSON using import syntax.
Consider using messageformat's built-in adapters or the @messageformat/icu-messageformat-1 package for legacy ICU support.
Flatten your structure manually before passing, or use a library like flat.
Install @types/messageformat-convert or declare module 'messageformat-convert'.
Use import instead: import convert from 'messageformat-convert'; or set type: 'module' in package.json.
Use: import convert from 'messageformat-convert';
No dependency data recorded yet.