Adds 3rd party translators to Twitter.
当前为
This is was fork of DeepL Twitter translation
Stable:
Beta:
Hosted on GitHub, disable stable if installed!
Adds a "Translate with ..." button to tweets and bios.
The old script would duplicate on scroll when combined with Twitter image viewing enhancement, this aims to fix that! I've also reworked the code to fit modern Javascript.
| Translators | Supported |
|---|---|
| DeepL Translate | ✔️ |
| Yandex Translate | ✔️ |
| Bing Microsoft Translator | ✔️ |
| Google Translate | ✔️ |
| Translate.com | ✔️ |
Twitters built-in translation uses Google, I added Google Translate to redirect to the full translate.google.com page.
// Don't worry it's on top, hard to miss!
let cfg = {
/** @type {'en'|'zh'|'nl'|'fr'|'de'|'it'|'ja'|'pl'|'pt'|'ru'|'es'} */
lang: 'en', // Your preferred language
/** @type {'deepl'|'yandex'|'bing'|'google'|'translate'} */
translator: 'deepl' // Your preferred translator, lowercase only!
};