tomouchuu / mastodon-translate

Tampermonkey Script to add option to Translate Toots
The Unlicense
24 stars 2 forks source link

Ability for a user to set their Language #1

Closed tomouchuu closed 7 years ago

tomouchuu commented 7 years ago

At the moment the script will always do an auto detect language translation to english which isn't ideal for a lot of people. Ideally on first install or some sort of settings page we should add an option for them to say what language they'd like to be toots to be translated to.

tomouchuu commented 7 years ago

As pointed out by a user, mastodon has a language option in their preferences (circled on attachment)

It would be sweet if we could tap into this for translating into a user's language. pref

tomouchuu commented 7 years ago

I think one option to use this would be to on first install/visit of user to mastodon, we either give an alert to get what language the user wants or to alert to get them to visit the preferences page so I can see what option has been picked and save it. Going to likely need to do some mapping between the Languages given in the dropdown and language codes.