poppingmoon / aria

A cross-platform Misskey client built with Flutter
https://misskey.io/@aria_app
GNU Affero General Public License v3.0
65 stars 3 forks source link

Translate button function changes #274

Closed Vezxe closed 3 weeks ago

Vezxe commented 3 weeks ago

Summary

Rather than have the button for translate send you to a new tab, send an api request and then change the post's text directly.

As for the language the post is translated to, it can be the app's chosen interface language.

Purpose

The app would feel much nicer if you didn't need to have a browser popup to read the translation of a post. :smiley:

Do you want to implement this feature yourself?

poppingmoon commented 3 weeks ago

Does your server support notes/translate endpoint and the canUseTranslator policy is enabled for your role? If so, the app will send an api request and show the translated text as a sheet. If these conditions are not met, the fallback behavior is to open a Google Translate page with a browser.

Vezxe commented 3 weeks ago

Ah! I didn't know that was a thing, I'll look into that now, thanks