Powered by Lingo.dev

Build global appswithout the headache.

LangOS demonstrates production-grade localization across build-time, runtime, RTL, formatting, and CI using Next.js 16 and Lingo.dev.

Lingo.dev Across the Stack

Build-time, runtime, and CI-level integration.

Lingo Compiler (Next.js)

withLingo() is configured in next.config.ts to compile source strings and generate locale output for en, es, de, and ar.

Lingo React Provider + Context

LingoProvider and useLingoContext handle runtime locale state, language switching, and localized rendering in app/layout and playground scopes.

Lingo.dev SDK Engine

The /api/translate route uses LingoDotDevEngine.localizeText() with timeout, locale validation, and in-memory response caching.

Lingo CLI

The project script lingo:run executes npx lingo.dev run to refresh localization artifacts from source changes.

Lingo in CI Pipeline

GitHub Actions runs npm run lingo:run when LINGO_API_KEY is present and i18n buckets are available, enforcing localization checks in CI.

Lingo Locale Persistence

Locale persistence is configured through Lingo Compiler to use a cookie (name: locale, maxAge: 31536000) for consistent user language selection.