|
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

Compiler Quick Start

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.

Compile your translations in 3 steps.

Install#

bash
npm install -D @lingo.dev/compiler

Configure#

javascript
// lingo.compiler.js
export default {
  input: "./locales",
  output: "./src/i18n",
  format: "typescript",
  optimize: true,
};

Compile#

bash
lingo compile

Your translations are now compiled and optimized for production!

Was this page helpful?