mastodon-ios icon indicating copy to clipboard operation
mastodon-ios copied to clipboard

“Translate to English” offered even for English posts

Open j-f1 opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

When I open the menu for a post that is in my current interface language, I still see the translate button.

Expected Behavior

The logic here should probably match the logic on the front end: translationEnabled && signedIn && ['public', 'unlisted'].includes(status.visibility) && status.contentHtml.length > 0 && status.language !== null && intl.locale !== status.get('language');

Steps To Reproduce

  1. Set your device/interface language to Interface
  2. Find an English post
  3. Tap the menu button

Environment

- Device: iPhone 13 Pro
- OS: iOS 16.2 (20C65)
- Version: built off of latest `develop`

Anything else?

No response

j-f1 avatar Dec 16 '22 21:12 j-f1