Skip to content

ci: reverse-translate English replies into the OP language - #17

Merged
coreybutler merged 1 commit into
mainfrom
ci/reverse-translate
Oct 24, 2026
Merged

coreybutler merged 1 commit into
mainfrom
ci/reverse-translate

Conversation

@coreybutler

Copy link
Copy Markdown
Contributor

What

Add a reverse-translate job on issue/discussion/review comments. Detect the original poster's language from the thread body and append a machine translation when a later English comment is posted.

Why

Inbound lizheming only goes to English. Maintainers reply in English. Original posters cannot read those replies.

Testing

Open or use a non-English issue. Post an English comment as someone other than the OP. Expect the original language appended below the same divider. English-only issues stay unchanged. OP comments are skipped. github-actions[bot] is skipped.

Risk

Uses the same unofficial Google web endpoint as inbound translation. 403/429 skips that comment (job continue-on-error). Sequential with inbound via separate job; bot edits do not loop.

Detect original-thread language and append a machine translation on English comments. Same Google endpoint and divider as inbound lizheming. Skip bots and the original poster.

Signed-off-by: Corey Butler <770982+coreybutler@users.noreply.github.com>
@coreybutler
coreybutler merged commit 450f893 into main Oct 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant