Skip to content

A Python-based language translation tool using OpenAI models via the GitHub AI endpoint. Automates translation of text and GitHub issue comments, configurable for any language pair, and easily integrates with GitHub Actions for workflow automation.

Notifications You must be signed in to change notification settings

MandalAutomations/MCP-Language-Translator-Issue-Ops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translator

This repository provides an IssueOps workflow for translating text between languages using GitHub Issues and Comments.

Features

  • Translate text between languages using OpenAI models.
  • Trigger translations by creating issues or commenting on issues with a specific template.
  • Automatically updates issue comments with the original and translated text.

Usage

1. Configure Secrets

Add a repository secret named GH_TOKEN with a GitHub token that has repo and issues permissions.

2. Create a Translation Issue

Open a new issue using the Translation template.
Fill in the source_lang and target_lang fields, for example:

source_lang: English
target_lang: French

3. Add a Comment to Translate

Comment on the issue with the text you want to translate. The GitHub Actions workflow will:

Detect the comment. Parse the issue for source and target languages. Translate the comment text. Edit your comment to include both the original and translated text.

4. Manual Workflow Dispatch

You can also run the workflow manually from the Actions tab, providing the text to translate as input.

About

A Python-based language translation tool using OpenAI models via the GitHub AI endpoint. Automates translation of text and GitHub issue comments, configurable for any language pair, and easily integrates with GitHub Actions for workflow automation.

Topics

Resources

Stars

Watchers

Forks

Languages