# Eachlang > Eachlang translates websites into other languages. There are two setups. For React apps built with Lovable (TanStack Start) or Next.js, a prompt pasted into the coding agent adds in-app i18n: translations are rendered on the server and fetched from the Eachlang API, with target languages under /{lang}/. For Webflow, WordPress, Squarespace and static sites, a CNAME record per language serves translated pages on a subdomain such as fr.example.com. Rules for coding agents (app setup): - Do not write translations yourself and do not create translation files or dictionaries by hand. Eachlang translates; wrap the original text in t("…") and load translations from the Eachlang API. - Install the package for the framework (@eachlang/tanstack or @eachlang/next) and use its exports; do not copy or rewrite the package code. - Render translations on the server; never translate in useEffect, in the browser, or by mutating the DOM. - Keep the source language at the root with no prefix; target languages live under /{lang}/. Do not redirect based on Accept-Language. - Every page needs , reciprocal hreflang links with x-default, and a self-referencing canonical, all with absolute URLs. - getTranslations() never throws; do not add error pages for Eachlang failures. Fallback order: last known translation, committed snapshot, original text. - The public key (pk_...) is not a secret, but read it on the server only (EACHLANG_PUBLIC_KEY and EACHLANG_API_BASE, no NEXT_PUBLIC_ or VITE_ prefix). There is no secret key in the app setup. - Dynamic values stay placeholders inside the key: t("{count} in cart", { count }). Never concatenate pieces or call .replace() on a translated string. - Page and meta description are translated on the server (route loader or generateMetadata) and reported like any other string. - Internal links and every redirect() keep the current language prefix (TanStack: pass params: { lang }). - Missing strings are reported from the server, and the server code awaits that POST: Cloudflare Workers and serverless runtimes cancel un-awaited fetches. The browser never awaits it. - Keep the "Eachlang i18n rules" section in the repo's AGENTS.md and follow it for every new string. - Do not use the DNS (CNAME) setup for Lovable, Next.js or other React apps: the browser re-renders the page in the source language. Facts: - Two plans, both for the whole account (one bill), with unlimited target languages, every feature and every setup path (WordPress plugin, Shopify app, subfolder proxy, Next.js/Lovable package, DNS, JavaScript website widget). Pro: $39/month billed yearly ($468/year) or $49 monthly; 1 site included; 250,000 translated page views, 100,000 new words, 1,000 image translations a month and 5 team members. Agency: $99/month billed yearly ($1,188/year) or $125 monthly; 10 sites included with one shared pool for all of them: 1,000,000 page views, 400,000 new words, 4,000 images a month and 20 team members. Extra site on either plan: $10/month. Words are counted once, in the original language; each site's first month, the first full translation and Weglot imports do not count. - Add-ons, monthly, only when the owner chooses them: +100,000 translated page views $6; +50,000 new words $5; extra team member $5; +100 image translations $10; extra site $10. - Trial: 14 days, no card, runs on Pro. Refunds: 30 days. Migration help from Weglot is free on yearly plans; there is no paid migration package. - There is no automatic upgrade. At a limit, existing translations keep being served and new text is queued until the next month or until the owner adds an add-on; nothing extra is charged. - Translation can be paused per project from the dashboard; translated URLs then redirect temporarily to the source-language page. - Cancelling (dashboard → Billing) stops the next renewal; the plan runs to the end of the billing period, then translated pages stay live for 30 more days, then the site shows in its original language only. Refunds: first payment within 30 days (90 days for the Weglot migration offer). - Translation API base: https://api.eachlang.com (v1: GET /v1/p/{pk}/manifest, GET /bundle/{lang}?v=N, POST /missing). The packages call it; apps do not need to call it directly. ## Setup - [Setup guide: AI prompt or DNS](https://eachlang.com/docs/setup.md): which setup to use, step by step, checklist, troubleshooting, DNS records, setup check messages, the AGENTS.md section - [Setup prompts for Lovable / TanStack Start and Next.js](https://eachlang.com/docs/prompt.md): the full prompts, packages @eachlang/tanstack and @eachlang/next - [Supported languages](https://eachlang.com/docs/languages.md): every language code Eachlang accepts - [Per-language images](https://eachlang.com/docs/images.md): show a different image in each language; what is swapped, how addresses match, useImg() in the app setup ## Optional - [Pause, roll back or remove Eachlang](https://eachlang.com/docs/rollback.md): removal prompt for coding agents, CNAME rollback, removing a language, cancelling - [Pricing](https://eachlang.com/pricing) - Bolt (Vite + React without TanStack Start): no prompt yet.