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/compilerConfigure#
javascript
// lingo.compiler.js
export default {
input: "./locales",
output: "./src/i18n",
format: "typescript",
optimize: true,
};Compile#
bash
lingo compileYour translations are now compiled and optimized for production!
