Per-component i18n tool with AI translation and visual editor for web applications
Intlayer is a free, open-source internationalization library that lets you define type-safe translations next to React, Next.js, Vue, Angular, and other JavaScript components, with an AI-powered CLI for automated translation, a visual editor for content management, and an optional headless CMS for remote syncing.
Intlayer is a type-safe i18n library that takes content declarations written in TypeScript or JavaScript next to your components and compiles them into dictionary files. It runs on any JavaScript environment (Node.js, browsers) and integrates with frameworks like Next.js, Express, NestJS, Hono, Fastify, React, Vue, Svelte, Solid, Nuxt, Astro, TanStack, Lit, and Angular. It is maintained by Aymeric Zip and the open-source community.
.content.ts files; the compiler extracts them and generates dictionary files automatically.npx intlayer fill to detect missing translations and fill them using OpenAI, Claude, or local AI models, keeping Git history clean and types intact.npx intlayer build) automatically extracts content from component files and generates dictionary files, reducing manual work.Intlayer is built for developers building multilingual web applications who want to keep translations next to their components and automate the localization workflow. It also serves content managers who need a visual editor to update site copy without writing code, and teams that require an open-source self-hosted alternative to proprietary translation management platforms like Crowdin or Lokalise.
npx intlayer fill) to automatically fill missing translations using AI models, then audit with npx intlayer test.You run npx intlayer init to set up the configuration. Then define content in .content.ts files in your component directories using the t() helper for localized strings. The Intlayer Compiler scans these files and generates typed dictionary files. On the client or server, you import the generated dictionary and use the library's hooks or helpers to render the correct locale. The optional visual editor and CMS allow remote editing without redeployment.
Share feedback and ask questions about this launch.