Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3614 from mozilla-services/3495-l10n-pluralization
Browse files Browse the repository at this point in the history
Fix #3495, Fix pluralization by passing integer time diffs as numbers, not strings
  • Loading branch information
ianb authored Oct 10, 2017
2 parents 14e7c32 + 3b0a99e commit a507b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/pages/shot/time-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports.TimeDiff = class TimeDiff extends React.Component {
} else {
timeDiff = this.dateString(this.props.date);
}
return <Localized id={timeDiff.l10nID} $number={timeDiff.diff}><span title={this.dateString(this.props.date)}></span></Localized>
return <Localized id={timeDiff.l10nID} $number={this.state.useLocalTime ? parseInt(timeDiff.diff, 10) : timeDiff.diff}><span title={this.dateString(this.props.date)}></span></Localized>
}

componentDidMount() {
Expand Down

0 comments on commit a507b88

Please sign in to comment.