|Labs
Book a DemoPlatform
React (Lingo Compiler)
Alpha
React (MCP)React (i18n)CLI

Lingo.dev Compiler

  • How it works
  • Setup
  • Compiler Quick Start

Frameworks

  • Next.js Integration
  • Vite + React

Guides

  • Locale Switching
  • Automatic Pluralization
  • Manual Overrides
  • Build Modes
  • Project Structure
  • Translation Providers
  • Custom Locale Resolvers
  • Development Tools

Reference

  • Best Practices
  • Configuration Reference
  • Troubleshooting
  • Migration Guide
  • Optimization
  • Output Formats

Optimization

Alpha

The Lingo.dev Compiler is in alpha. It is unstable, not recommended for production use, and APIs may change between releases.

Advanced compiler optimization techniques.

Tree Shaking#

The compiler analyzes usage to remove unused translations:

typescript
// Only bundle what you actually use
import { t } from "./i18n";

t("welcome.title"); // ✅ Included
// 'auth.login' never used → ❌ Not included in bundle

Bundle Size Savings

Typical projects see 40-60% reduction in translation bundle size.

Was this page helpful?

Max PrilutskiyMax Prilutskiy·Updated 3 months ago·1 min read