|
Knowledgebase
EnterprisePlatform
PlatformAPIReact (MCP)CLIIntegrationsReact (Lingo Compiler)
Alpha
GuidesChangelog

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

Max PrilutskiyMax Prilutskiy·Updated about 1 month ago·1 min read

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?