Skip to main content

Co-op Translator

Keep multilingual GitHub documentation current as your source evolves.

Co-op Translator detects changed source content, updates stale translations, and preserves the links and structure of Markdown, Jupyter notebooks, and images.

Python 3.11–3.14 Python package Container: GHCR License: MIT Monthly downloads

Get started · See real repositories · Read the documentation

Translating one file is easy. Keeping an entire documentation repository translated, linked, and up to date is the hard part.

Why Co-op Translator?

Translation is not finished when a model returns text. Repository-scale documentation needs to stay complete, navigable, and synchronized after every source change.

Problem How Co-op Translator helps
Source content keeps changing Source hashes and language-scoped metadata identify stale files and skip unchanged translations.
Long documents do not fit one reliable model response Markdown is split into manageable chunks, with retry and re-chunking for failed sections.
Models can alter Markdown structure or destinations Structure checks and parser-based protection preserve Markdown URLs, code, and Markdown structure.
Links must follow the translated repository tree Relative links for Markdown, notebooks, images, and README files are rewritten for translations/<lang>/....
A repository contains more than prose One workflow can handle Markdown, Jupyter notebooks, image text, and repository-level review.

See Co-op Translator in real repositories

Co-op Translator has been used in Microsoft open-source learning repositories that combine lessons, code samples, links, notebooks, and supporting assets.

AI Agents for Beginners

A lesson-based repository with code samples and supporting documentation organized into language-specific versions.

View repository · Browse translations

Generative AI for Beginners

A large curriculum containing lessons, code, images, and links across a multilingual documentation tree.

View repository · Browse translations

MCP for Beginners

Technical learning content covering Model Context Protocol concepts, examples, and language-scoped documentation.

View repository · Browse translations

Explore more multilingual Microsoft learning repositories

Get started

Install Co-op Translator and preview the work without configuring provider credentials:

pip install co-op-translator
translate -l "ko" -md --dry-run

Configure Azure OpenAI, OpenAI, or Anthropic credentials, then run the translation and deterministic review:

translate -l "ko" -md
co-op-review -l "ko"

For a first run, start with Choose your workflow. It compares local translation, Python automation, GitHub Actions, containers, and agent or editor integration.

Want a translation pull request first? Follow Your first README translation PR: choose one language, preview the work, then generate and review a README translation before merging. No image service setup is needed.

How it works

  1. Plan: scan the repository, normalize language codes, and identify new or outdated source content.
  2. Translate: process Markdown, notebook cells, and image text with configured providers. MCP host agents can translate Markdown and notebook chunks.
  3. Preserve structure: protect code and URL destinations, then rewrite relative paths for the translated repository tree.
  4. Track and review: save language-scoped metadata so later runs can skip unchanged files and report missing, stale, or structurally incomplete translations.

Translated content remains in the repository, where it can be reviewed, versioned, and updated with the source:

Example of translated content organization

Translation state is managed like a software artifact

Co-op Translator manages translations as versioned software artifacts, not as disconnected static files. Language-scoped metadata records the source state for translated Markdown, images, and notebooks.

This design lets repository owners:

  • Detect outdated translations without retranslating unchanged files
  • Let hosted integrations preserve accepted human edits in unchanged Markdown blocks through an optional translation state provider
  • Apply the same maintenance model to Markdown, images, and notebooks
  • Review translation completeness and repository structure in CI
  • Scale translation maintenance across large, fast-moving repositories

Read how translation state is managed

Core capabilities

  • Incremental translation based on source changes and language-scoped metadata
  • Markdown chunking, recovery, structural validation, and URL protection
  • Translation of Markdown, Jupyter notebooks, and text embedded in images
  • Relative-link rewriting for translated repository layouts
  • Credential-free, write-free dry runs across the CLI, Python API, and MCP
  • Deterministic review of translation freshness, structure, and local links
  • Azure OpenAI, OpenAI, and Anthropic Claude support for provider-backed translation
  • Azure AI Vision support for image text extraction
  • Host-agent translation of Markdown and notebook chunks through MCP

Choose your interface

Interface Best for Guide
CLI Local repository work and scripts CLI reference
Python API Applications and custom automation Python API
MCP server Agent and editor workflows MCP server
GitHub Actions Repository translation in CI GitHub Actions
Container Isolated or repeatable CLI runs Quick run

Container

Container quick run with Bash or Zsh:

docker run --rm -it --env-file .env -v "${PWD}:/work" ghcr.io/azure/co-op-translator:latest -l "ko" -md

Container quick run with PowerShell:

docker run --rm -it --env-file .env -v ${PWD}:/work ghcr.io/azure/co-op-translator:latest -l "ko" -md

Open at Microsoft: Co-op Translator and Phi-3 Cookbook

Case studies and engineering deep dives

Case studies

Engineering deep dives

Documentation

Microsoft-specific guide

Supported languages and cloning

Co-op Translator supports 50+ language and locale codes. Expand this section to browse translated README files and see how to clone the repository without translation assets.

View supported languages and sparse-checkout instructions

Arabic | Bengali | Bulgarian | Burmese (Myanmar) | Chinese (Simplified) | Chinese (Traditional, Hong Kong) | Chinese (Traditional, Macau) | Chinese (Traditional, Taiwan) | Croatian | Czech | Danish | Dutch | Estonian | Finnish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Kannada | Khmer | Korean | Lithuanian | Malay | Malayalam | Marathi | Nepali | Nigerian Pidgin | Norwegian | Persian (Farsi) | Polish | Portuguese (Brazil) | Portuguese (Portugal) | Punjabi (Gurmukhi) | Romanian | Russian | Serbian (Cyrillic) | Slovak | Slovenian | Spanish | Swahili | Swedish | Tagalog (Filipino) | Tamil | Telugu | Thai | Turkish | Ukrainian | Urdu | Vietnamese

Prefer to Clone Locally?

This repository includes 50+ language translations which significantly increases the download size. To clone without translations, use sparse checkout:

Bash / macOS / Linux:

git clone --filter=blob:none --sparse https://github.com/Azure/co-op-translator.git
cd co-op-translator
git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'

CMD (Windows):

git clone --filter=blob:none --sparse https://github.com/Azure/co-op-translator.git
cd co-op-translator
git sparse-checkout set --no-cone "/*" "!translations" "!translated_images"

This gives you everything you need to complete the course with a much faster download.

Contributing

Know a language and noticed a translation problem? Make your first contribution without coding by sharing an example or reviewing a suggested correction.

See CONTRIBUTING.md for development setup, coding conventions, and pull request guidance.

co-op-translator contributors

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with additional questions or comments.

Responsible AI

Microsoft is committed to helping our customers use our AI products responsibly, sharing our learnings, and building trust-based partnerships through tools like Transparency Notes and Impact Assessments. Many of these resources can be found at https://aka.ms/RAI. Microsoft's approach to responsible AI is grounded in our AI principles of fairness, reliability and safety, privacy and security, inclusiveness, transparency, and accountability.

Large-scale natural language, image, and speech models - like the ones used in this sample - can potentially behave in ways that are unfair, unreliable, or offensive, in turn causing harms. Please consult the Azure OpenAI service Transparency note to be informed about risks and limitations.

The recommended approach to mitigating these risks is to include a safety system in your architecture that can detect and prevent harmful behavior. Azure AI Content Safety provides an independent layer of protection, able to detect harmful user-generated and AI-generated content in applications and services. Azure AI Content Safety includes text and image APIs that allow you to detect material that is harmful. We also have an interactive Content Safety Studio that allows you to view, explore and try out sample code for detecting harmful content across different modalities. The following quickstart documentation guides you through making requests to the service.

Another aspect to take into account is the overall application performance. With multi-modal and multi-models applications, we consider performance to mean that the system performs as you and your users expect, including not generating harmful outputs. It's important to assess the performance of your overall application using generation quality and risk and safety metrics.

You can evaluate your AI application in your development environment using the prompt flow SDK. Given either a test dataset or a target, your generative AI application generations are quantitatively measured with built-in evaluators or custom evaluators of your choice. To get started with the prompt flow sdk to evaluate your system, you can follow the quickstart guide. Once you execute an evaluation run, you can visualize the results in Azure AI Studio.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Getting help

For project problems, open a GitHub issue. For questions about building AI applications, use the Microsoft Foundry community channels:

Microsoft Foundry Discord

Microsoft Foundry Developer Forum

Metadata

Release files for co-op-translator 0.21.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for co-op-translator 0.21.0
File Size Uploaded
co_op_translator-0.21.0.tar.gz 16.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for co-op-translator 0.21.0
File Interpreter ABI Platform
co_op_translator-0.21.0-py3-none-any.whl Python 3 none any Details

Total release size: 32.4 MB

Release files / co_op_translator-0.21.0.tar.gz

Download URL co_op_translator-0.21.0.tar.gz
Size 16.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a3a818db6c341c78fcac615b104b00b0545439a9caae99519f195bc4dd933254
BLAKE2b-256 checksum
How to use checksums
324af6dcbd49fb970bc0166ec84ed6b27d018af47203d14b7733fce01b003979
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / co_op_translator-0.21.0-py3-none-any.whl

Download URL co_op_translator-0.21.0-py3-none-any.whl
Size 16.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3d13a034619e0b3ef0835394c01035354cc21f51d71ca7f3780e33eef476303a
BLAKE2b-256 checksum
How to use checksums
6f11258ab8a693cad5cfe7af4768ac182c57334aee57665a7ccfe8aa3dcfac03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.23.0

2 release files

This release

0.21.0 This release

2 release files

0.20.1

2 release files

0.19.2

2 release files

0.19.1

2 release files

0.19.0

2 release files

0.18.3

2 release files

0.18.2

2 release files

0.18.1

2 release files

0.18.0

2 release files

0.17.2

2 release files

0.17.0

2 release files

0.16.8

2 release files

0.16.7

2 release files

0.16.5

2 release files

0.16.2

2 release files

0.16.1

2 release files

0.16.0

2 release files

0.15.1

2 release files

0.15.0

2 release files

0.14.1

2 release files

0.13.3

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.6

2 release files

0.12.4

2 release files

0.12.3

2 release files

0.12.2

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.11.6

2 release files

0.11.4

2 release files

0.11.3

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.4

2 release files

0.10.3

2 release files

0.10.2

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.8

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page