Fluxlation
Official
An official plugin, included with FluxPlugs. Open Fluxer Settings → FluxPlugs → Plugins and choose Install next to Fluxlation. It starts switched off until you turn it on.
What it can do
The 6 permissions it asks for
- SettingsRead and change its own settings.
- Saved dataKeep its own saved data.
- Dialogs and menusShow dialogs, panels, overlays, notices and menu items. Sees the ids of the message, person or channel whose menu item you click.
- DecorationsAdd content to messages and the member list. Sees the ids of messages, authors and members shown on screen.
- Message textRead the text of messages shown on screen, and of up to 100 recent messages in the conversation you have open after you act in its UI.
- NetworkSend requests to the servers it lists and read their replies, without asking.Connects to:
translate.googleapis.comapi.mymemory.translated.netapi-free.deepl.comapi.deepl.comtranslation.googleapis.comapi.cognitive.microsofttranslator.comlibretranslate.comIt can send the text and ids of messages it reads to these servers.
Fluxer shows this same list when you turn the plugin on.
About this plugin
Translates messages without replacing them. Right-click a message and choose Translate: a section below the message shows the translation, the language it was translated from and the provider, with a Hide button. The original text stays as it is. If a translation fails, the section says why and offers Retry.
Providers
Set Translation provider in FluxPlugs Settings → Plugin Settings.
| Provider | Account | Notes |
|---|---|---|
google |
No | The default. Google Translate's unofficial free endpoint, which may rate-limit or change without notice. |
mymemory |
No | MyMemory's free API. An email address in MyMemory email raises its daily quota. |
deepl |
API key | Free-plan keys (ending in :fx) use api-free.deepl.com, others api.deepl.com. |
google-cloud |
API key | Google Cloud Translation v2. |
microsoft |
API key | Microsoft Translator. Set Azure region for a regional resource. |
libretranslate |
API key | libretranslate.com only. Self-hosted instances aren't supported, because the hosts are fixed in the manifest. |
A keyed provider without a key falls back to Google Translate, with a one-time notice. When Google Translate or MyMemory is rate-limited or unreachable, Fluxlation tries the other one.
Translate into takes a language code such as en, es, pt-BR or
zh-TW. Empty means your system language.
Auto-translate
Auto-translate is off by default. When it's on, Fluxlation translates every message from other people that you view and that isn't already in your language.
[!WARNING] Auto-translate sends the text of every message you view to the provider, not only the ones you pick, and it can use up a provider's free quota fast. Free providers (Google, MyMemory) may block you for a while if you scroll through busy channels. For heavy use, set an API key.
The first time it runs, Fluxlation asks you to confirm this warning; declining turns the setting off again. To stay within limits, auto-translate:
- sends at most 20 requests a minute to free providers (60 to keyed ones), and at most 2 at once;
- pauses for a minute when the provider starts refusing requests, doubling up to 10 minutes if it keeps refusing, and shows a notice each time.
What is sent where
Only the text of the messages you translate (all messages you view, with auto-translate) goes to the selected provider, and nowhere else. Roughly the first 1,500 characters of a message are translated; the translation shown below the message is cut to fit, ending with "…".
The API key field is masked on screen, but the key is stored unencrypted on this computer, like other plugin settings.
Capabilities: settings, storage (remembers that you accepted the
auto-translate warning), ui, decorations, message_content, network.
Development
Built with node packages/plugin-tools/cli.mjs build plugins/fluxlation from the repository root, which rewrites the manifest's integrity hash. pnpm --filter @fluxplugs/fluxlation test runs the tests. node packages/plugin-tools/cli.mjs pack plugins/fluxlation makes a distributable ZIP. See the developer documentation for the sandbox and lifecycle rules.
From the plugin's README on GitHub, written by its author.
Details
- Version
- 1.0.0
- License
- MIT
FluxPlugs is an independent project, not affiliated with or endorsed by Fluxer.