main ← fix-rewind-pronouns-for-other-users
merged 09:01AM - 02 Jan 26 UTC
When viewing someone else's shared Rewind, report titles and messages
were using… first-person pronouns like "Your best posts" which was
confusing since the content belonged to someone else.
This adds owner-aware translations using the `_others` suffix pattern
(matching existing Discourse conventions like `no_replies_title_others`).
A small helper function `i18nForOwner` selects the appropriate translation
based on whether the viewer is the Rewind owner.
Report components now receive an `isOwnRewind` prop from the parent and
use it to display either "Your best posts" or "username's best posts"
depending on context.
### Why no new system specs for report content?
The existing sharing specs verify the viewing-other-user flow works correctly.
Adding specs to verify the actual translated text in reports was not practical because:
1. Only the first 3 reports (TopWords, ReadingTime, WritingAnalysis) load initially due to lazy loading
2. These initial reports don't have dynamic "Your/username's" titles
3. Reports like BestPosts (9th in load order) would require scrolling
4. Each report requires complex data setup (e.g., ReadingTime needs `UserVisit` records with `time_read`, BestPosts needs posts with likes, etc.)
The `i18nForOwner` helper is straightforward and the pattern is consistent across all 13 updated components.
Ref - https://meta.discourse.org/t/391440