Skip to content
i18n guides

Internationalization for Every Framework

Find the perfect i18n solution for your tech stack. We support React, Next.js, Vue, Nuxt, Angular, Svelte and more.

lefine
01Terminal
npm install lefine
02lefine.ts
import { createLefine } from "lefine/next";export const lefine = createLefine({  project: "app_3f9c0e4b2a7d4e1f9b6c5a8d7e2f1a0b",  locales: ["en", "de"],  defaultLocale: "en",});
03proxy.ts
import { lefine } from "./lefine";export default lefine.proxy;export const config = {  matcher: ["/((?!api|_next|_vercel|.*\\..*).*)"],};
04app/[locale]/layout.tsx
import { lefine } from "@/lefine";export default async function Layout({ children, params }) {  const { locale } = await params;  return (    <lefine.Provider locale={locale} namespaces={["nav"]}>      {children}    </lefine.Provider>  );}

Your project ID, from the dashboard

Runs on lefine/next: one setup file, a proxy for locale routing, and strings in Server and Client Components.

Next.js guide
Frameworks

Choose Your Framework