Quickstart
Get typed translations into your app in ~5 minutes. Lingo pulls translations as JSON at build time — your app bundles the files and doesn't call Lingo while it runs. A server that must pick up copy changes without a redeploy can load translations at runtime instead.
1. Create an API key
Project → Settings → API keys → create a key with at least read:translations
(add write:translations if you'll push). Copy it once — it's shown only then.
2. Install
npm i -D @radicalstorage-lingo/cli
npm i @radicalstorage-lingo/sdk
3. Configure + authenticate
npx lingo init --api-url https://<your-lingo-host> # projectId can be left blank
npx lingo login --api-key lgo_live_xxxxx # or set LINGO_API_KEY in CI
lingo login fills in projectId for you if it's blank. Or set it yourself —
lingo.config.json's projectId accepts either the project's id or its slug
(the slug is what the app's URLs show).
Edit lingo.config.json to list your languages.
4. Pull
npx lingo pull
Writes messages/{lang}.json (one bundle per language) and .lingo/types.ts.
Commit them, or run lingo pull as part of your build/CI.
5. Use the translations
import { createTranslator } from '@radicalstorage-lingo/sdk';
import en from './messages/en.json';
const t = createTranslator({ messages: en, language: 'en' });
t('home.title', { name: 'Ada' }); // ICU-formatted
React and i18next integrations: see sdk.md. Full command list: cli.md.
Keep CI honest
lingo status is read-only — run it in CI to detect translations that were
changed in Lingo but not yet pulled into the repo.