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 daily challenge stats display suffix not displayed #29405

Closed
wants to merge 1 commit into from

Conversation

frenzibyte
Copy link
Member

Almost forgot to fix this one before release. The new code may be a little too complicated, it just tries to preserve localisation of the number itself while arbitrarily adding "d"/"w" at the end. We can remove localisation from the number itself and simplify further but I think this is fine as-is.

@frenzibyte frenzibyte force-pushed the fix-daily-challenge branch from 3b0aeb7 to d109ccd Compare August 13, 2024 10:51
Comment on lines +115 to +116
// todo: ideally we want to use UsersStrings.ShowDailyChallengeUnit{Day,Week}(...), but it's broken right now.
// see: https://github.com/ppy/osu/issues/29355#issuecomment-2277139889
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is ever getting fixed 😅

Comment on lines -118 to +120
currentWeekly.Value = UsersStrings.ShowDailyChallengeUnitWeek(statistics.WeeklyStreakCurrent.ToLocalisableString(@"N0"));
currentWeekly.Value = LocalisableString.Interpolate($"{statistics.WeeklyStreakCurrent.ToLocalisableString(@"N0")}w");
Copy link
Contributor

Choose a reason for hiding this comment

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

We should add concrete localisations for these instead imo. Duplicate the osu!web ones for our purpose.

Copy link
Member Author

Choose a reason for hiding this comment

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

Feel free to apply that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Daily challenge statistics display does not have suffixes
2 participants