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.
LangOS demonstrates production-grade localization across build-time, runtime, RTL, formatting, and CI using Next.js 16 and Lingo.dev.
Build-time, runtime, and CI-level integration.
withLingo() is configured in next.config.ts to compile source strings and generate locale output for en, es, de, and ar.
LingoProvider and useLingoContext handle runtime locale state, language switching, and localized rendering in app/layout and playground scopes.
The /api/translate route uses LingoDotDevEngine.localizeText() with timeout, locale validation, and in-memory response caching.
The project script lingo:run executes npx lingo.dev run to refresh localization artifacts from source changes.
GitHub Actions runs npm run lingo:run when LINGO_API_KEY is present and i18n buckets are available, enforcing localization checks in CI.
Locale persistence is configured through Lingo Compiler to use a cookie (name: locale, maxAge: 31536000) for consistent user language selection.