Output Formats

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.

The compiler supports multiple output formats.

TypeScript#

typescript
export const translations = {
  welcome: "Welcome",
} as const;

JavaScript (ESM)#

javascript
export const translations = {
  welcome: "Welcome",
};

JSON#

json
{
  "welcome": "Welcome"
}

Choose the format that best fits your build pipeline.