Command-line tools for linting, extracting, and inlining format-message translations in JavaScript projects. Version 6.2.4 provides three main commands: lint (validate message patterns and translations), extract (collect all message patterns into a JSON/YAML file), and transform (replace pattern calls with translations, optionally inlined). Integrates with format-message and supports generating IDs from messages. CLI-only, requires format-message as a peer dependency. Differentiates from similar i18n tools by offering a complete workflow from extraction to inlining without a build plugin.
npm install format-message-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install the CLI and run lint, extract, and transform commands on source files with translations.
Run 'npm install format-message' in your project or globally.
Switch to 'underscored' or 'literal' type.
Always specify --translations when using --inline for non-default locales.
Use lint, extract, or transform instead.
Run 'npm install format-message'
Ensure your translations file includes all IDs from the extract output.
Use 'format-message transform --inline ...' instead.