Skip to content

Conversation

@nattsw
Copy link
Contributor

@nattsw nattsw commented Feb 27, 2025

Bug:

Screen.Recording.2025-02-26.at.12.53.31.AM.mov

In the recording above, when a post is just created, we see the 🌐 appear for a brief moment, then disappear.

We typically want to show the 🌐 in case the post is not in the same language as the reader's. This works really well for old posts that do not have translation information. But since now all posts will be sent for locale detection on-create, it is a matter of seconds that the post's locale is determined.

This PR adds a buffer of 10 seconds that will prevent the 🌐 from appearing if 1. it was just created and 2. it doesn't have the locale yet.

Copy link
Contributor

@tyb-talks tyb-talks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌐

@nattsw nattsw merged commit cf11bde into main Feb 27, 2025
5 checks passed
@nattsw nattsw deleted the flash-of-globe branch February 27, 2025 03:24
nattsw added a commit that referenced this pull request Apr 16, 2025
In #229 we added a buffer to not show the 🌐 within 10 seconds of post creation. We need to extend this to post edits as well to allow the edited post to be translated automatically and prevent the user from seeing the flash of 🌐
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants