Is the guess random? Strangely, the same post is sometimes recognized as a need for translation, and sometimes it doesn‘t.

When switching pages, you will also see no translation, such as switching from the global to the homepage, but it does not always happen.

I think it is more necessary to cache the translation than the original text, because the API may be charged or the number of translations is limited.

Reply to this note

Please Login to reply.

Discussion

The predicted language is provided by Apple’s natural language library, but it can be incorrect. That accounts for most of what you see in your experience using translations in Damus.

The other issue is that we don’t retry failed requests to fetch translations at the moment, which could improved on. Requests can transiently fail for a multitude of reasons.

Noted about caching translations. I’ll think on it more.

Thank you for your answer. With your efforts, Damus‘s translation function will become better and better.