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 = {
6 key: "component",
7 content: {
8 title: t({
9 en: "Title of my component",
10 fr: "Titre de mon component",
11 es: "Título de mi componente",
12 }),
13 content:
14 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
15 },
16} satisfies DeclarationContent;
17
18export 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.