Compiler Quick Start

Updated: 3 quarters 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!