Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(issues): Show 50+ Replays whenever the count is maxed out like that #80809

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Nov 15, 2024

The replayCount is only accurate for a small number of replays. So the backend will max-out when it finds there are 51 replays in the list. The frontend is therefore responsible for rendering "50+" when it sees a count of 51.

This PR updates a few spots related to Issue Details so that we render 50+ instead of 51.

SCR-20241115-msqp SCR-20241115-msrj

@ryan953 ryan953 requested a review from a team as a code owner November 15, 2024 06:24
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 15, 2024
Comment on lines -68 to -71
{t(
'There are %s for this issue.',
tn('%s replay', '%s replays', replayCount ?? 0)
)}
Copy link
Member Author

Choose a reason for hiding this comment

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

This was never the right way to translate the sentence. Using tn() inside a t()... or any other combination of nesting like that... is going to make it hard for translators and lead to bad translations.

@ryan953 ryan953 merged commit 9fb9a1b into master Nov 15, 2024
45 checks passed
@ryan953 ryan953 deleted the ryan953/issues-replay-count branch November 15, 2024 16:46
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants