Internationalisation Layer

    Type-Safe. Translate with AI. Edit Visually.

    npx intlayer init

    Define translations wherever you want in your codebase and speed up your development. Keep your bundle as light as it should be.

    Available for

    // src/component/server/component.content.tsimport { t, type Dictionary } from "intlayer";const componentContent = {  key: "server-component",  content: {    title: t({      en: "Title of my component",      fr: "Titre de mon component",      es: "Título de mi componente",    }),    content:      "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",  },} satisfies Dictionary;export default componentContent;
    // src/components/Component.tsxexport const Component = () => {  return (    <div>      <h2>Intlayer Compiler</h2>      <p>        The Intlayer Compiler extracts automatically the content from the        components and generates the dictionary files.      </p>    </div>  );};
    Try it for free using the playground.Go to playground
    intlayer test
    $ npx intlayer test
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    ~/Desktop/MyApp

    Improve code maintainability by keeping your content definitions close to your components. Reduce redundancy, enhance clarity, and simplify updates with a structured approach that makes your code easier to manage and scale over time.

    Extract your content instantly with the Intlayer Compiler. It will automatically generate the necessary dictionary files for your content to internationalize your application in a second.

    Leverage the free visual editor to build and manage your site effortlessly. Create, edit, and organize components and pages without touching code, making it easier for content managers and developers to collaborate efficiently.

    Expand your reach with built-in translation support. Easily translate your content using an intuitive interface, ensuring seamless multilingual experiences for your users without the hassle of managing multiple content versions manually.

    Use the Intlayer CLI to test and fill your content using AI to ensure all translations are complete and accurate.

    Frequently asked questions

    Internationalization (i18n) is the process of designing and developing applications like Next.js, React, or Express to support multiple languages easily. It enables you to create multilingual websites by simplifying the translation process. Tools like TypeScript make it easier to implement i18n, allowing for efficient and easy adaptation of your application to different languages and regions.Read more about i18n

    Intlayer is a package that allows you to manage your multilingual website. It provides a set of tools and utilities that make it easy to set up your website for multilingual content and localization.Read more about Intlayer

    Intlayer simplifies configuration management and enables internationalization for various types of JavaScript applications, including server components. It allows content declaration directly alongside components, improving codebase maintainability. Additionally, Intlayer leverages TypeScript to prevent missing declarations. Finally, Intlayer offers a visual editor, enabling non-developers to edit website content, translate automatically using AI, and optimize the application’s SEO.Read more about Intlayer's features

    Intlayer integrates with Next.js to enable server-side rendering and static site generation, making multilingual content delivery more efficient.Read more about Next.js integration

    Yes, Intlayer provides an optional visual editor for managing content easily without diving into code.Read more about the visual editor

    You can contribute by submitting pull requests or reporting issues on the GitHub repository.Read more about how to contribute

    Intlayer integrates a selection of free NPM packages along with a visual editor. Additionally, it offers a CMS for externalizing content. This CMS is free to use but includes additional features for Premium and Enterprise plan members.Read more about Intlayer plans

    Intlayer is available for React (including Create React App), Vite with React, Next.js, Tanstack Start, Vue, Nuxt, Express, NestJS, Preact, and more. This ensures a seamless integration with modern JavaScript frameworks and server-side environments.Read more about the platforms supported

    Yes, Intlayer can be integrated as a wrapper around i18next, next-intl, vue-i18next, and more. This allows you to automate your translations, and use Intlayer without having to refactor your existing code.

    Read all frequent questions