Support for Biome
main0.111.11 added support for Biome, enabling integration with Biome's formatting and linting capabilities.repository·main·Indexed 26 days ago
https://github.com/lingodotdev/lingo.devA tool for React applications providing automatic JSX text transformation and AI-powered translation support. It includes a compiler (@lingo.dev/compiler) that integrates with Vite, Webpack, and Next.js, and a CLI (@lingo.dev/cli) for managing translations across JSON, JSONC, Markdown, MDX, Markdoc, and OpenAPI YAML. Additionally, it offers a Directus integration via the @replexica/integration-directus extension for automated localization flows.
0.111.11 added support for Biome, enabling integration with Biome's formatting and linting capabilities.The Lingo compiler automatically transforms React components to inject translation calls at build time. The process follows this high-level flow:
.tsx and .jsx files (skipping node_modules).t(hash, fallback)).The @lingo.dev/compiler package includes the following features:
0.112.0 introduced support for Markdoc, allowing Lingo.dev to work with Markdoc-based content structures.Lingo.dev provides several tools for localization engineering:
Set up i18n with supported AI coding assistants.npx lingo.dev@latest run.uses: lingodotdev/lingo.dev@main.withLingo() plugin. Compatible with Next.js (App Router) and Vite + React.The Lingo CLI allows you to translate multiple file formats including JSON, YAML, markdown, CSV, and PO. It uses a lock file to track translations, ensuring only new or modified content is processed. By default, it uses your translation engine from Lingo.dev, but you can also use your own LLM (OpenAI, Anthropic, Google, Mistral, OpenRouter, or Ollama).
npx lingo.dev@latest init
npx lingo.dev@latest runStarting from version 0.130.0, the Lingo.dev GitHub Action supports GPG commit signing. This allows the action to sign commits using the -S flag.
To use this feature, you must:
crazy-max/ghaction-import-gpg action to import the key.git_user_signingkey and git_commit_gpgsign to true in the GPG action.gpg-sign: true in the lingodotdev/lingo.dev action configuration.- uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
- uses: lingodotdev/lingo.dev@main
with:
api-key: ${{ secrets.LINGODOTDEV_API_KEY }}
gpg-sign: trueThe Lingo CLI allows you to localize JSON, YAML, markdown, CSV, and PO files in a single command. It uses a lock file to track previously localized content, ensuring only new or modified content is processed. By default, it uses your Lingo.dev localization engine, but you can also use your own LLM (OpenAI, Anthropic, Google, Mistral, OpenRouter, or Ollama).
npx lingo.dev@latest init
npx lingo.dev@latest run--watch flag enables automatic monitoring of source files. When modifications are detected, the CLI triggers retranslation to keep target language files in sync with source changes. It uses a debounced mechanism to group rapid changes into single translation batches, preventing excessive API calls and resource waste.Set up i18n to begin.