fkirc/attranslate

A CLI to assist Coding Agents in doing translations

What it solves

It simplifies the process of translating website and app localization files (JSON, YAML, XML, etc.) by automating the synchronization of new strings while protecting manual corrections from being overwritten by machine translations.

How it works

The tool identifies missing translations in target files compared to a source file. When used with the agent service, it prints the missing strings and instructions for a coding agent. The agent then provides the translations via a pipe (stdin), which the tool integrates back into the translation files.

Who it’s for

Developers using AI coding agents to manage multi-language support in their applications.

Highlights

  • Preserves Manual Edits: Never overwrites existing translations, allowing developers to manually fix machine errors.
  • Agent-Optimized: Specifically designed to work with AI agents via a pipe-based workflow to minimize token usage.
  • Multi-Format Support: Compatible with various formats including JSON, YAML, XML, PO, ARB, and CSV.
  • CI/CD Integration: Exits with a non-zero code when translations are missing, making it useful for automated build checks.

Related

  • Project
  • Project
  • Project
  • Project
  • Project