Impove Intl formatting (#5372)
* Improve Intl formatting * Additional fixes * Fixed formatters were not updated on locale change * Fixed formatNumber was not updated on locale change * Additional formatting and fixes after merge * Run prepr:frontend * Remove `'` in icon map * Run `pnpm install` * fix: lint + import * Additional fixes --------- Co-authored-by: Calum H. <calum@modrinth.com> Co-authored-by: Calum H. (IMB11) <contact@cal.engineer>
This commit is contained in:
@@ -77,10 +77,6 @@ export const commonMessages = defineMessages({
|
||||
id: 'label.dashboard',
|
||||
defaultMessage: 'Dashboard',
|
||||
},
|
||||
dateAtTimeTooltip: {
|
||||
id: 'tooltip.date-at-time',
|
||||
defaultMessage: '{date, date, long} at {time, time, short}',
|
||||
},
|
||||
declineButton: {
|
||||
id: 'button.decline',
|
||||
defaultMessage: 'Decline',
|
||||
@@ -387,19 +383,28 @@ export const commonMessages = defineMessages({
|
||||
},
|
||||
projectDownloads: {
|
||||
id: 'project.download-count-tooltip',
|
||||
defaultMessage: '{count} {count, plural, one {download} other {downloads}}',
|
||||
defaultMessage: '{count, number} {count, plural, one {download} other {downloads}}',
|
||||
},
|
||||
projectFollowers: {
|
||||
id: 'project.follower-count-tooltip',
|
||||
defaultMessage: '{count} {count, plural, one {follower} other {followers}}',
|
||||
defaultMessage: '{count, number} {count, plural, one {follower} other {followers}}',
|
||||
},
|
||||
projectOnlinePlayerCount: {
|
||||
id: 'project.online-player-count',
|
||||
defaultMessage: '{count} {count, plural, one {online} other {online}}',
|
||||
defaultMessage: '{count, number} online',
|
||||
},
|
||||
projectOnlinePlayerCountTooltip: {
|
||||
id: 'project.online-player-count.tooltip',
|
||||
defaultMessage: '{count} {countPlural, plural, one {player} other {players}} online',
|
||||
},
|
||||
projectRecentPlays: {
|
||||
id: 'project.recent-plays',
|
||||
defaultMessage: '{count} {count, plural, one {recent play} other {recent plays}}',
|
||||
defaultMessage: '{count} {countPlural, plural, one {recent play} other {recent plays}}',
|
||||
},
|
||||
projectRecentPlaysTooltip: {
|
||||
id: 'project.recent-plays.tooltip',
|
||||
defaultMessage:
|
||||
'{count} {countPlural, plural, one {recent play} other {recent plays}} from Modrinth in the past 2 weeks',
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user