awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
andrewyng avatar

andrewyng/translation-agent

0
View on GitHub↗
5,765 stars·708 forks·Python·MIT·43 views

Translation Agent

Translation Agent is a Python-based system that uses a large language model to translate text through a multi-step agentic workflow. Rather than producing a single output, it generates an initial translation, then prompts the same LLM to critique its own work and produce improvement suggestions, and finally refines the translation based on that self-critique. This reflection-driven iterative refinement loop is the core mechanism for improving translation quality without requiring human feedback or additional training data.

The system distinguishes itself through two key capabilities. First, it enforces consistent terminology by injecting a user-defined glossary directly into the LLM prompt at every stage of the workflow, ensuring that names, technical jargon, and other specified terms are translated uniformly across the entire document. Second, it allows users to steer the translation style by adjusting prompt parameters that control formality, handle idioms, and target specific regional dialects, giving fine-grained control over the output's tone and linguistic register.

The entire workflow is orchestrated by a lightweight Python script that sequences stateless LLM calls and manages prompt templates, with all context passed explicitly in each prompt rather than maintained in memory. This stateless, prompt-based architecture keeps the system simple and portable, requiring no dedicated runtime or framework beyond the Python script and access to an LLM API.

Features

  • Reflective Translation Agents - Provides an agentic workflow that translates text by generating, reflecting on, and refining translations using an LLM.
  • LLM Translation Workflows - Decomposes translation into discrete stages of generation, reflection, and refinement via separate LLM calls.
  • Iterative Translation Refinement - Implements a sequential loop of translation, self-critique, and polishing to increase linguistic precision.
  • Self-Critiquing Pipelines - Implements a multi-step pipeline where the LLM critiques its own output to produce higher-quality translations.
  • Translation Style Parameters - Controls formality, dialect, and idiom handling by adjusting system prompt parameters for translation calls.
  • Translation Self-Critique - Uses the LLM to critique its own translation output and generate improvement suggestions before finalizing.
  • Self-Critiquing Pipelines - Implements a multi-step pipeline where the LLM critiques its own output to produce higher-quality translations.
  • Style Parameter Prompting - Steers output formality, handles idioms, and targets regional dialects through customizable prompt parameters.
  • Regional Dialect Overrides - Merges terminology bundles to override translations for regional dialects and adjust formality.
  • Reflective Text Translation - Translates text by generating an initial version, reflecting on it for improvements, and refining the output.
  • Translation Glossary Enforcement - Enforces consistent translations for names and technical jargon by including a glossary in the prompt.
  • Translation Style Steering - Adjusts formality, handles idioms, and targets regional dialects through customizable translation prompts.
  • Translation Critique Pipelines - Sequences discrete stateless LLM calls for translation, critique, and refinement in a pipeline.
  • Translation Style Parameters - Provides prompt parameters to control formality, dialect, and idiom handling in translations.
  • Translation Term Mapping - Overrides automated translation outputs using a glossary to ensure consistent terminology across documents.
  • Prompt-Injected Glossaries - Enforces consistent terminology by injecting a user-defined glossary directly into the LLM prompt at every workflow stage.
  • Prompt-Injected - Injects glossary terms into prompts to enforce consistent translation of names and jargon across outputs.
  • Reflective - Demonstrates a reflection-based workflow for improving machine translation quality through iterative refinement.
  • Reflective Translation Workflows - Implements a reflective workflow where the LLM generates, critiques, and refines its own translations in a multi-step process.
  • Style Parameter Prompting - Provides adjustable prompt parameters to control formality, handle idioms, and target regional dialects in translations.
  • Python Script Orchestrators - Ships a lightweight Python script that sequences stateless LLM calls and manages prompt templates for translation workflows.
  • Python Script Orchestrators - Ships a lightweight Python script that sequences stateless LLM calls and manages prompt templates for translation workflows.
  • Translation Workflows - An agentic workflow for nuanced, multi-parameter translation tasks.

Star history

Star history chart for andrewyng/translation-agentStar history chart for andrewyng/translation-agent

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Translation Agent

These projects share indexed features with Translation Agent. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • nekoparapa/ainieeNEKOparapa avatar

    NEKOparapa/AiNiee

    5,152View on GitHub↗

    AiNiee is an LLM-based localization tool that automates the translation of games, books, subtitles, and documents across multiple languages. It operates as a batch processing engine, translating entire folders of files in parallel while preserving directory structure, and includes a glossary management system that enforces terminology consistency using AI-powered glossaries, forbidden terms, and user-defined text substitution rules. The tool differentiates itself through key architectural decisions: it distributes translation requests across multiple API keys to bypass rate limits and acceler

    Python
    View on GitHub↗5,152
  • funstory-ai/babeldocfunstory-ai avatar

    funstory-ai/BabelDOC

    7,752View on GitHub↗

    BabelDOC is a technical document translation system designed to translate PDF files while preserving their original layout and styling. It functions as a layout-preserving translator that utilizes large language models to convert content into target languages, specifically tailored for scientific and technical documents. The system distinguishes itself through specialized handling of academic content, including the identification and preservation of mathematical formulas and complex layout structures. It ensures technical accuracy by employing glossary-driven terminology enforcement, using so

    Python
    View on GitHub↗7,752
  • 0xpayne/gpt-migrate0xpayne avatar

    0xpayne/gpt-migrate

    6,978View on GitHub↗

    gpt-migrate is an automated system that uses large language models to translate source code between different programming languages and frameworks. It serves as a tool for language migration and code refactoring, transforming codebases while maintaining the original project structure. The project employs a containerized execution loop to run migrated code in isolated environments. It captures runtime stack traces and logs to automatically identify and fix errors through an iterative refinement cycle, modifying files until the application functions. To ensure functional parity, the system syn

    Python
    View on GitHub↗6,978
  • ht524/500lineorless_cnHT524 avatar

    HT524/500LineorLess_CN

    4,434View on GitHub↗

    This project is a Chinese localization repository and technical translation project designed to make concise programming projects and technical documentation accessible to Chinese speakers. It provides a collection of translated resources and curated mappings of computer science terminology to ensure consistent translation of technical concepts. The project implements a software localization workflow that converts English-language technical guides and codebase documentation into Chinese. This process utilizes a technical glossary resource and a resource-driven localization model to maintain t

    Jupyter Notebook
    View on GitHub↗4,434
Compare all 14 related projects→

Frequently asked questions

What does andrewyng/translation-agent do?

Translation Agent is a Python-based system that uses a large language model to translate text through a multi-step agentic workflow. Rather than producing a single output, it generates an initial translation, then prompts the same LLM to critique its own work and produce improvement suggestions, and finally refines the translation based on that self-critique. This reflection-driven iterative refinement loop is the core mechanism for improving translation quality without…

What are the main features of andrewyng/translation-agent?

The main features of andrewyng/translation-agent are: Reflective Translation Agents, LLM Translation Workflows, Iterative Translation Refinement, Self-Critiquing Pipelines, Translation Style Parameters, Translation Self-Critique, Style Parameter Prompting, Regional Dialect Overrides.

Which projects share features with andrewyng/translation-agent?

Projects with overlapping indexed features include: nekoparapa/ainiee — AiNiee is an LLM-based localization tool that automates the translation of games, books, subtitles, and documents… funstory-ai/babeldoc — BabelDOC is a technical document translation system designed to translate PDF files while preserving their original… 0xpayne/gpt-migrate — gpt-migrate is an automated system that uses large language models to translate source code between different… huanshere/videolingo — VideoLingo is an automated video localization suite designed to transcribe, translate, and dub video content. It… ht524/500lineorless_cn — This project is a Chinese localization repository and technical translation project designed to make concise… sakurallm/sakurallm — SakuraLLM is a multi-format document translation system that hosts large language models for translating Japanese text…