Localización de publicaciones sobre temas con más de 20 publicaciones

On a topic with more than 20 posts, only the first 20 posts are shown translated; the other posts stay untranslated.

  1. Select English as your interface language (German works too, so I guess everything except for Chinese will work).
  2. Open any topic and ensure translations are toggled off.
  3. Open Discourse-embed-bilibili(在discourse中插入哔哩哔哩视频)
  4. Scroll down to the last post.
  5. Scroll back to the first post.
  6. Toggle the language to English.
  7. Scroll down.

Expected: All posts are English.
Actual result: The first 20 posts are English, but those loaded on scrolling are in the original language.

This also happens on other topics with more than 20 posts. I chose this post as the example because the last posts aren’t in English, so it can be reproduced with an English interface. If you choose a different interface language, you can reproduce it on a topic with English posts too.

Took me a while to understand, but the gist of the bug is:

“Show Original” button only applies to current “page” of posts, and it not respected when loading next page via scrolling

Right?

This would drill down to the route at GET https://meta.discourse.org/t/#{topic.id}/posts.json?post_ids[]=#{posts.id} not respecting the cookie content-localization-show-original: "true".

Maybe :eyes:

My problem was that I was reading the topic in the original language. Then I used the toggle, because I don’t speak Chinese. That took me back to the first post (I don’t fully understand why; it doesn’t always happen. That’s why I chose scrolling in the steps above).
And then the first 20 posts were in English, but the last ones were still in Chinese.

I think in that case, a show-original: "false" would be what I needed to see all posts in English. I haven’t tried it the other way around or checked the requests. I haven’t found a replacement for the Kiwi browser which allows using dev tools on Android.