A JSON compiler for the l10n-tools i18n pipeline, targeting formats like vue-i18n, node-i18n, and i18next. Current stable version is 7.0.10, updated as part of a monorepo with active releases. It depends on l10n-tools-core ^8.0.0 as a peer dependency and requires Node.js >=22.19.0. Compared to other l10n compilers, it is specifically designed to integrate with the l10n-tools ecosystem, providing a unified workflow for extracting, compiling, and syncing translations.
npm install l10n-tools-compiler-jsonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles a JSON locale object into vue-i18n formatted output using the compileJson function.
Upgrade Node.js to v22.19.0 or later.
Use dynamic import() if needed: const { compileJson } = await import('l10n-tools-compiler-json').Replace 'i18next' with 'i18next-v4' in the options.
Run `npm install l10n-tools-compiler-json` and ensure Node.js >=22.19.0.
Use `import compileJson from 'l10n-tools-compiler-json'` for default export or `import { compileJson }` for named export.Switch to ESM (use import) or use dynamic import: const { compileJson } = await import('l10n-tools-compiler-json').