Open source / Next.js / next-tongue
next-tongue
Compiler-first, type-safe i18n for the Next.js 16 App Router, built for Cache Components (pre-alpha)
Flagship · usado en este sitioEn npm
$ npm install next-tongue $ npx tongue init
Used on this site: i18n readiness (en-GB at launch) · Combina con next-herald
Flagship · engineering
Problem, decisions, proof.
01 · Problem
Existing i18n libraries predate Cache Components and proxy.ts. next-tongue compiles messages at build time and resolves the locale from route params only, so translated pages stay cacheable.
02 · Documentation
04 · CI gates
- Lint, typecheck and unit tests
- Dependency check (zero runtime deps)
- Bundle size check
- Matcher benchmarks
- Docs sample check
- Playwright e2e on example apps
Workflows: ci.yml · nightly-canary.yml · publish.yml
03 · Architecture decision records (13)
- ADR 0001Compile messages at build time
- ADR 0002Locale from params only
- ADR 0003ICU MessageFormat
- ADR 0004Generated types registry
- ADR 0005Bring-your-own LLM (OpenAI-compatible)
- ADR 0006Next.js 16 only
- ADR 0007Root params not default
- ADR 0008Explicit time zone
- ADR 0009Client message delivery
- ADR 0010Own ICU parser
- ADR 0011Supported Next versions
- ADR 0012Zero dependencies
- ADR 0013Database and CMS messages
README
No se pudo cargar el README. Ver en GitHub ↗