Twitter External Translator
Adds a "Translate with ..." button to Tweets and User Bios.
This was a fork of DeepL Twitter translation
Stable:
Hosted here, disable beta!
Beta:
Hosted on GitHub, disable stable!
Features:
- Works with TweetDeck. 1
- Multiple translators!
- Translate Tweets and User Bio.
- Can be configured. 2
Translators |
Supported |
DeepL Translate |
✔️ |
Yandex Translate 3 |
✔️ |
Bing Microsoft Translator 4 |
✔️ |
Google Translate 4 |
✔️ |
MyMemory |
✔️ |
Translate.com |
✔️ |
Roadmap
- Fix any bugs along the way
- Add more external translations
- Make config easier
- Show multiple translators at once
- Inline?
- TweetLonger?
Bugs / Issues
- "Translate with ..." button can rarely appear while in Quote Tweet dialog.
Footnotes:
1: Only appears in one column, User Bios not supported. ↩
2: Reload webpage. ↩
/**
* You'll need to edit the config manually for now if you're using this
* as a user script.
*/
let cfg = {
/** Supported languages
* @type {'en'|'zh'|'nl'|'fr'|'de'|'it'|'ja'|'pl'|'pt'|'ru'|'es'}
* @type {'bg'|'cs'|'da'|'et'|'fi'|'el'|'hu'|'lv'|'lt'|'ro'|'sk'|'sl'|'sv'} */
lang: ('en'),
/** Preferred translator, lowercase only!
* @type {'deepl'|'yandex'|'bing'|'google'|'mymemory'|'translate'} */
translator: ('deepl'),
/** Preferred display
* @type {'text'|'icon'|'text + icon'} */
display: ('text + icon'),
iconWidthA: '16', // Twitter
iconWidthB: '14', // TweetDeck
debug: false
};
3: Yandex Translate may default to Russian. ↩
4: Twitters built-in translation uses Google Translate, TweetDeck uses Bing Microsoft Translator. ↩
Contacts
GitHub
Twitter
Greasy Fork