MarineCG40
Step 1 — Test for missing translations You can now automatically check if you’re missing any keys in your localization files. It works with your CLI, CI/CD pipelines, or even your Jest/Vitest test suite.
Example:
npx intlayer test:i18next
It scans your codebase, compares it to your JSON files, and outputs which keys are missing or unused. Super handy before deploying or merging a PR.
Step 2 — Automatically fill missing translations
You can choose your AI provider (ChatGPT, Claude, DeepSeek, or Mistral) and use your own API key to auto-fill missing entries. Only the missing strings get translated, your existing ones stay untouched.
Example:
npx intlayer translate:i18next --provider=chatgpt
It will generate translations for missing keys in all your locales.
Step 3 — Integrate in CI/CD You can plug it into your CI to make sure no new missing keys are introduced:
npx intlayer test:i18next --ci
If missing translations are found, it can fail the pipeline or just log warnings depending on your config.
Bonus: Detect JSON changes via Git There’s even a (WIP) feature that detects which lines changed in your translation JSON using git diff, so it only re-translates what was modified.
If you’re using Next.js
TL;DR Test missing translations automatically Auto-fill missing JSON entries using AI Integrate with CI/CDWorks with i18next
Stop fine-tuning LLMs for docs, use RAG
Show HN: A simpler way to manage internationalization in component-based apps
https://github.com/aymericzip/intlayer
I built this because I was frustrated with how messy translation files get as projects scale. Most i18n solutions force you to manage big JSON dictionaries, spread across multiple files, and then manually wire everything into your UI. It quickly becomes hard to keep things organized, especially in component-heavy apps. This approach is component-first i18n: translations live close to the UI...