translate

Overview

Translates Markdown, JSON, YAML, ARB, XML, or Apple .strings files between languages using the Zeus translation API configured in src/zeus. It preserves structural formats while converting textual content.

Usage

ouro translate <input-file> <output-file> --from <source-lang> --to <target-lang>

Key Options

  • --from <lang> – Source language code (see ouro translate --help for the supported list).
  • --to <lang> – Target language code.

Inputs & Outputs

  • Inputs: path to the file to translate plus language codes. The command resolves relative paths from the current working directory.
  • Outputs: translated file written to the requested path with format-specific handling (e.g., JSON, Markdown).

When to Use

  • Provide multilingual versions of README files, requirements, or user guides.
  • Localise structured resource bundles (ARB, .strings, JSON) while keeping keys intact.

Follow-up Checklist

  • Review translated text for domain-specific terminology that may need manual tweaks.
  • Commit both the source and translated files so future diffs remain manageable.