Internationalization for Every Framework
Find the perfect i18n solution for your tech stack. We support React, Next.js, Vue, Nuxt, Angular, Svelte and more.
npm install lefineimport { createLefine } from "lefine/next";export const lefine = createLefine({ project: "app_3f9c0e4b2a7d4e1f9b6c5a8d7e2f1a0b", locales: ["en", "de"], defaultLocale: "en",});import { lefine } from "./lefine";export default lefine.proxy;export const config = { matcher: ["/((?!api|_next|_vercel|.*\\..*).*)"],};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 guidenpm install lefineimport { createStrings } from "lefine/server";export const strings = createStrings({ project: "app_3f9c0e4b2a7d4e1f9b6c5a8d7e2f1a0b",});import { StringsProvider } from "lefine/react";import { strings } from "./strings";import { App } from "./App";export async function render(locale: string) { const props = await strings.load(locale, ["nav", "home"]); return ( <StringsProvider {...props}> <App /> </StringsProvider> );}Your project ID, from the dashboard
lefine/server loads the strings in your server entry, and StringsProvider sends only the namespaces a page uses.
Vite guidenpm install lefineimport { createStrings } from "lefine/server";export const strings = createStrings({ project: "app_3f9c0e4b2a7d4e1f9b6c5a8d7e2f1a0b",});import { createFileRoute, Outlet } from "@tanstack/react-router";import { StringsProvider } from "lefine/react";import { strings } from "../../strings";export const Route = createFileRoute("/$locale")({ loader: ({ params }) => strings.load(params.locale, ["nav", "home"]), component: () => ( <StringsProvider {...Route.useLoaderData()}> <Outlet /> </StringsProvider> ),});Your project ID, from the dashboard
Strings load on the server for each route, so the server and the client render the same copy.
TanStack Start guidenpm install lefineimport { createStrings } from "lefine/server";export const strings = createStrings({ project: "app_3f9c0e4b2a7d4e1f9b6c5a8d7e2f1a0b",});import type { LoaderFunctionArgs } from "react-router";import { useLoaderData, Outlet } from "react-router";import { StringsProvider } from "lefine/react";import { strings } from "~/strings.server";export async function loader({ params }: LoaderFunctionArgs) { return strings.load(params.locale ?? "en", ["nav", "home"]);}export default function Root() { return ( <StringsProvider {...useLoaderData<typeof loader>()}> <Outlet /> </StringsProvider> );}Your project ID, from the dashboard
Strings load on the server, in loaders, through lefine/server. Works with Shopify Hydrogen.
Remix guidenpm install i18next react-i18nextnpx expo install expo-localizationnpx lefine strings pull -o ./localesYour project ID, from the dashboard
npx lefine strings pull writes JSON files that the i18next setup you already have loads.
Expo guidenpx lefine loginnpx lefine strings pull -o ./localesYour project ID, from the dashboard
npx lefine strings pull writes JSON files your server reads at start. The same code runs on Workers, Deno, Bun and Node.
Hono guidenpx lefine strings pull -o ./assets/localesflutter: assets: - assets/locales/Your project ID, from the dashboard
npx lefine strings pull writes JSON files into the assets of your app for the i18n library you use.
Flutter guideChoose Your Framework
- React i18nType-safe React internationalization with hooks and context
- Next.js i18nServer-side i18n for Next.js apps with App Router support
- TanStack Start i18nFull-stack i18n for TanStack Start with SSR and route-aware localization
- Vite i18nFast frontend i18n for Vite projects with typed translation workflows
- Remix & Hydrogen i18nLocalized route-driven apps and storefront experiences
- Vue i18nVue.js internationalization with Composition API integration
- Nuxt i18nNuxt.js localization module with automatic routing
- Angular i18nAngular internationalization with built-in i18n support
- Svelte i18nLightweight Svelte internationalization integration
- Expo i18nOffline-ready localization for Expo and React Native apps
- iOS i18nString Catalog and SwiftUI localization for native iOS apps
- Flutter i18nARB-based localization for Flutter mobile and web apps
- Server i18nMiddleware-based internationalization for APIs and edge runtimes
- HonoLocale detection and a translator in every route handler, from one middleware.
- RustNo crate exists — read the same CDN JSON with reqwest and serde_json.
- React Native i18nDevice locale, offline cache and over-the-air translation updates
- Android i18nstrings.xml resources, Jetpack Compose and per-app language settings
- JavaScript i18nThe Intl API and ICU MessageFormat, with no framework at all
- Django i18ngettext, .po files and locale middleware for Python web apps
- Ruby on Rails i18nYAML locale files and the Rails I18n API, synced from a CDN
i18n Resources
- Best TMSCompare top translation management systems
- Best LibraryFind the best i18n library for your framework
- For DevelopersDeveloper-focused internationalization guide
- Translation ManagementCentralize your translation workflow with a TMS
- Software LocalizationAdapt your software for global markets
- Website LocalizationLocalize your website for international users
- Localization vs InternationalizationUnderstand the difference between l10n and i18n
Localization Guides
- Content LocalizationAdapt your content for different cultures and markets
- Cultural AdaptationGo beyond translation with culturally aware content
- Website TranslationTranslate your website content for global audiences
- Translation SolutionsExplore tools and services for translation workflows
- Localization SoftwarePlatforms and tools that power multilingual products