I'd like GitHub (github.com) added to the Kagi Translate extension's website integrations, next to the existing ones such as X/Twitter, Reddit, YouTube, and Fediverse.
The integration would:
- Add a translate button to the opening post and to every comment on Issue, Pull Request, and Discussion pages.
- Optionally show the translation inline under the original text, the way the X/Twitter integration does, so the user never leaves the page.
- Translate commit messages (title and body) on commit pages.
Why it matters: GitHub is where most open-source collaboration happens, and contributors don't share a single language. Issues, PR descriptions, review comments, and commit messages are regularly written in Chinese, Japanese, Korean, Russian, Portuguese, Spanish, and other languages. Today, maintainers and contributors either copy the text into a separate Kagi Translate tab or translate the whole page. Whole-page translation works poorly on GitHub because it also touches code blocks, file paths, identifiers, labels, and the UI, which makes technical discussions harder to follow, not easier.
Effect on existing workflows: Like the other integrations, it would be a toggle under Settings → Integrations, so nothing changes for users who don't turn it on. Because it translates one comment at a time, code and the GitHub UI stay as they are. Only the prose the user chose is translated.
Triaging an issue written in another language
A maintainer opens an issue written in Chinese. Every comment, the opening post included, has a "Translate with Kagi" button in its header next to the ⋯ menu. Clicking it shows the translation below the original text, and a "Show original / Hide translation" toggle collapses it again. The original comment is never replaced, so quoting and replying still work on the original text.
Automatic inline translation (Twitter-style)
If the user enables automatic mode, any comment whose detected language differs from the target language gets its translation shown underneath right away, as the X/Twitter integration does now. A long thread then reads like a bilingual conversation with no clicking.
Pull request review
The same button appears on:
- the PR description
- comments in the Conversation tab
- inline review comments in the "Files changed" tab
- review summaries (Approve / Request changes / Comment)
A reviewer can read feedback from a contributor in another language without leaving the diff view.
Discussions
The button appears on the discussion post, each answer, and nested replies. This is especially useful for Q&A categories, where users often ask in their native language.
Commit messages
On a commit page (/<owner>/<repo>/commit/<sha>), a translate button next to the commit message translates the title and the body. This helps when reading git blame results, reviewing history, or reading changelogs in repositories whose commit messages aren't written in English. As a possible extension, the same could apply to the commit list (/commits) and to the "Commits" tab of a PR.
What should be preserved untranslated
GitHub content is Markdown with a lot of technical tokens, so the translation should keep these unchanged:
- fenced code blocks and
inline code
- URLs and links
@mentions, #123` issue/PR references, and commit SHAs
- file paths and identifiers
- Markdown structure (lists, tables, quotes, headings, task lists)
Technical considerations
GitHub uses client-side navigation and loads content dynamically ("Load more" in long threads, comments arriving in real time, switching tabs inside a PR). The integration would need to detect newly inserted comment elements instead of only scanning the page once at load. This is related to the existing request "Handle SPA sites properly in Translate Browser addon."
How it fits into existing features
It would reuse the integration settings that already exist:
- the shared translate button icon style
- the "Best" translation quality setting for integrations (subscribers)
- alternative translations under integration translations being off by default
Examples of similar implementations
- Kagi Translate's own integrations: X/Twitter, Fediverse, Reddit, YouTube, and the email clients already offer inline or button-based translation. GitHub would follow the same pattern.
- X/Twitter: the "Translate post" link shows the translation directly under the original post.
- GitHub Comment Translator (a third-party browser extension) adds a translate button next to each comment's
⋯ menu on Issue, PR, and Discussion pages, and shows the translation under the original comment. This shows the per-comment approach works well on GitHub.