ByoGlot Translator 作者: BrainRTP
Translate pages and selected text with your own model and prompts, through opencode or your own API key.
扩展元数据
屏幕截图
关于此扩展
Translate web pages and selected text with your own AI model, and decide yourself how it translates.
A regular machine translator writes in one style for everything. In ByoGlot you write the instructions: keep technical terms in English with the translation in brackets, explain rare words with an example, or write plainly, the way a colleague would in chat. Save the instructions as a template and bind it to a site, so documentation gets one style and forums get another.
ByoGlot has no model or subscription of its own. It works through opencode on your computer, or through a provider you pick with your own API key: DeepSeek, OpenRouter, Ollama, LM Studio or any OpenAI-compatible URL. You keep paying only the provider you already use, and you don't sign up anywhere. Ollama and LM Studio run on your own machine and need no key at all.
Pages
- Click the toolbar button or press Option+A (Alt+Shift+T on other systems). The translation replaces the text in place, or appears under the original if you want to see both.
- What's on screen is translated first, the rest as you scroll. Dialogs, infinite feeds and new views in single-page apps are translated as they appear.
- Tooltips, image alt text and input placeholders are translated too.
- A bar at the top of the page shows how much is left. Links and layout keep working, and one click brings the original back.
Selected text
- Select a phrase and click the icon next to it, or press Option+X (Alt+Shift+S). The translation opens in a small card.
- Or translate it right in the page: the insert button in the card, or Option+I (Alt+Shift+I), replaces the selected text and keeps its links and formatting. A small button next to it brings the original back. Set "Selection translation" to "In place" in the popup, and the icon and Option+X do the same without the card.
- The One-shot card closes when you click elsewhere. The Pinned card stays on screen and adds every new selection to a feed, which helps when you read a long text and keep looking things up.
- Each card has its own effort level (how long the model thinks before answering). Both start at high.
Settings
- Templates: your instructions, target language, display mode, and separate models for pages and for selections.
- Several saved connections, and you can switch between them.
- A translation cache: text you have already translated costs nothing the second time.
- Seven animations for the translated text, from a soft fade to a meteor shower. Or none.
- English and Russian interface. Light theme, dark theme, or follow the system.
The built-in Russian profile was tuned on side-by-side comparisons of translations, to keep the model away from word-for-word calques and stiff officialese. Other languages use a generic profile. You can edit both.
Getting started
You need one of two things: opencode 2.x running on this computer as a background service (opencode service start) with at least one model, or an API key from an OpenAI-compatible provider. After install the extension opens a connection page. For opencode, run "opencode pair" in a terminal and paste the link it prints. For a provider, choose "My provider", pick a preset, paste the key and connect.
Privacy
The text you translate goes only to the connection you chose: your local opencode, which passes it on to the model's provider, or straight to the provider whose key you added. There is no analytics, and nothing goes anywhere else. Your key stays on your device. Full policy: https://github.com/BrainRTP/byoglot-translator/blob/main/PRIVACY.md
Free and open source under the MIT license: https://github.com/BrainRTP/byoglot-translator
An independent project, not affiliated with the opencode team.
A regular machine translator writes in one style for everything. In ByoGlot you write the instructions: keep technical terms in English with the translation in brackets, explain rare words with an example, or write plainly, the way a colleague would in chat. Save the instructions as a template and bind it to a site, so documentation gets one style and forums get another.
ByoGlot has no model or subscription of its own. It works through opencode on your computer, or through a provider you pick with your own API key: DeepSeek, OpenRouter, Ollama, LM Studio or any OpenAI-compatible URL. You keep paying only the provider you already use, and you don't sign up anywhere. Ollama and LM Studio run on your own machine and need no key at all.
Pages
- Click the toolbar button or press Option+A (Alt+Shift+T on other systems). The translation replaces the text in place, or appears under the original if you want to see both.
- What's on screen is translated first, the rest as you scroll. Dialogs, infinite feeds and new views in single-page apps are translated as they appear.
- Tooltips, image alt text and input placeholders are translated too.
- A bar at the top of the page shows how much is left. Links and layout keep working, and one click brings the original back.
Selected text
- Select a phrase and click the icon next to it, or press Option+X (Alt+Shift+S). The translation opens in a small card.
- Or translate it right in the page: the insert button in the card, or Option+I (Alt+Shift+I), replaces the selected text and keeps its links and formatting. A small button next to it brings the original back. Set "Selection translation" to "In place" in the popup, and the icon and Option+X do the same without the card.
- The One-shot card closes when you click elsewhere. The Pinned card stays on screen and adds every new selection to a feed, which helps when you read a long text and keep looking things up.
- Each card has its own effort level (how long the model thinks before answering). Both start at high.
Settings
- Templates: your instructions, target language, display mode, and separate models for pages and for selections.
- Several saved connections, and you can switch between them.
- A translation cache: text you have already translated costs nothing the second time.
- Seven animations for the translated text, from a soft fade to a meteor shower. Or none.
- English and Russian interface. Light theme, dark theme, or follow the system.
The built-in Russian profile was tuned on side-by-side comparisons of translations, to keep the model away from word-for-word calques and stiff officialese. Other languages use a generic profile. You can edit both.
Getting started
You need one of two things: opencode 2.x running on this computer as a background service (opencode service start) with at least one model, or an API key from an OpenAI-compatible provider. After install the extension opens a connection page. For opencode, run "opencode pair" in a terminal and paste the link it prints. For a provider, choose "My provider", pick a preset, paste the key and connect.
Privacy
The text you translate goes only to the connection you chose: your local opencode, which passes it on to the model's provider, or straight to the provider whose key you added. There is no analytics, and nothing goes anywhere else. Your key stays on your device. Full policy: https://github.com/BrainRTP/byoglot-translator/blob/main/PRIVACY.md
Free and open source under the MIT license: https://github.com/BrainRTP/byoglot-translator
An independent project, not affiliated with the opencode team.
评分 5(1 位用户)
权限与数据
更多信息