Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomouchuu/mastodon-translate
Tampermonkey Script to add option to Translate Toots
https://github.com/tomouchuu/mastodon-translate
mastodon translation
Last synced: 3 months ago
JSON representation
Tampermonkey Script to add option to Translate Toots
- Host: GitHub
- URL: https://github.com/tomouchuu/mastodon-translate
- Owner: tomouchuu
- License: unlicense
- Created: 2017-04-16T09:04:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T23:37:17.000Z (almost 2 years ago)
- Last Synced: 2024-04-13T13:50:02.017Z (7 months ago)
- Topics: mastodon, translation
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 23
- Watchers: 3
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# NOTES, please read
Probably very out of date and not maintained as I don't really use mastodon anymore
Feel free to fork or PR!You're _probably_ better off looking into https://github.com/Gottox/greasemonkey-mastodon-translate as it uses DeepL (which I think is way better than GoogleTranslate) and is actually seeing development.
Just incase you want to still see this one...
----
# MastodonTranslate
## A tampermonkey script to add a Translate Toot option to toots via GoogleTranslate
### Install // Setup
You'll first want Tampermonkey/Greasemonkey for your relevant browser then to install this script head to: https://github.com/tomouchuu/mastodon-translate/raw/master/index.user.js and tampermonkey should prompt you to install the script.
Next head to your instance and head to your preferences (/settings/preferences) and there should be an area for the Translation script. If you're happy for the translations to be done via Google then click the checkbox to agree to this and then set the language you want toots to be translated into. Once that's set, click save changes and then head back to your feeds, give the page another refresh to activate the script again (see limitation below).
### Limitations
* ~~Will only work on niu.moe instance~~ Kinda fixed - [#2](https://github.com/tomouchuu/mastodon-translate/issues/2)
* No mobile version as we can't detect due too...
* Only mastodon web (No Pleroma MastoFE) due to checking for settings page ([see this commit](https://github.com/tomouchuu/mastodon-translate/commit/b1089be0e2380e066e962dcf487e838e3ee3ed1e#diff-69190d6f0d24b28a691a91348b1e79a0R142))### What it does
Upon clicking the ellipsis (...) you should see an option to translate toot, click this and it will translate the toot via a GoogleTranslate proxy (https://github.com/uchuuio/translate-server || https://translate.uchuu.io) into english by default. To change this to your desired language, head to your mastodon preferences in settings and you should see an option for translate language. Select the language you'd like and then save changes, head back to the feed and refresh the page.
If you haven't yet agreed to using Google Translate it will take you to your preferences page where you can enable this option.
### Issues
If you're having issues with the script, please feel free to reach out to me by raising an issue here or messaging me on mastodon at ~~niu.moe/@tomo~~ or [@tomouchuu](https://www.twitter.com/tomouchuu) on twitter.