docs

Migrate from @linguanahq/compiler

Replace the build dependency:

bun remove @linguanahq/compiler
bun add -d @linguanahq/vite

Then select the React adapter explicitly:

import { linguana } from "@linguanahq/vite";
import { react as linguanaReact } from "@linguanahq/vite/react";

linguana({
  adapter: linguanaReact(),
  projectId: "your-project",
  token: process.env.LINGUANA_PROJECT_TOKEN,
});

environment now defaults to development, sourceLocale defaults to en, and a supplied token enables manifest upload unless upload: false is set. For build-driven translation, replace targetLocales with enabled: true; the dashboard’s enabled Languages list is authoritative.

The compatibility package remains available for one release and emits one deprecation warning per build.

Did this page get you to a working result?

On this page

No Headings