Skip to content

Add Co-op Translator workflow #858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2025

Conversation

skytin1004
Copy link
Contributor

✨ Add Co-op Translator GitHub Action Workflow

This pull request introduces an automated translation workflow powered by Co-op Translator, which uses Azure AI and OpenAI to localize project content.

🚀 What This Workflow Does

Whenever changes are pushed to the main branch:

  • It automatically translates updated content into multiple target languages
  • Outputs translated markdown to the translations/ directory
  • Outputs translated images (e.g., with localized text) to translated_images/
  • Creates a pull request with the generated content using GitHub App authentication

🔧 Workflow Highlights

  • Supports both Azure AI and OpenAI as backends
  • Automatically reflects updates in:
    • URLs
    • Inline code
    • Sentence structure
  • PRs are created using the peter-evans/create-pull-request action
  • Temporary branches are deleted automatically (delete-branch: true)

ℹ️ Translation runs are triggered only when changes are pushed to main.
Translated files are regenerated, ensuring consistency with source content.

Copy link
Contributor

👋 Thanks for contributing @skytin1004! We will review the pull request and get back to you soon.

@github-actions github-actions bot requested a review from koreyspace July 12, 2025 04:20
@skytin1004 skytin1004 changed the title Add Co-op Translator workdlow Add Co-op Translator workflow Jul 12, 2025
@leestott leestott self-assigned this Jul 14, 2025
@leestott leestott self-requested a review July 14, 2025 09:16
@leestott leestott merged commit 3743ec1 into microsoft:main Jul 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants