A clother way to transltate your website
Intlayer is an internationalization library designed specifically for JavaScript developers. It allow the declaration of your content everywhere in your code. It converts declaration of multilingual content into structured dictionaries to integrate easily in your code. Using TypeScript, Intlayer make your development stronger and more efficient.
1// src/component/client/component.content.ts
2
3import { t, type DeclarationContent } from "intlayer";
4
5const componentContent: DeclarationContent = {
6 id: "component",
7 title: t({
8 en: "Title of my component",
9 fr: "Titre de mon component",
10 es: "Título de mi componente",
11 }),
12 content:
13 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
14};
15
16export default componentContent;
Available on
Why to chose Inlyayer?
Intlayer is free and open source, allowing you to use it for free and contribute to suit your needs.
Harness the flexibility of JavaScript to define and manage your content efficiently.
Leverage TypeScript to ensure all your content definitions are precise and error-free.
Keep your translations close to their respective components, enhancing maintainability and clarity.
Get up and running quickly with minimal configuration, especially optimized for Next.js projects.
Edit your content on your website with an integrated CMS directly on your website. Boost content generation thanks to AI.