1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-28 23:08:25 +09:00

Fix following_counter plural to include "one" (#14342)

That should've worked just fine, but unfortunately, Crowdin wasn't able
to pick up on our non-existent "one" category, thus appending empty
translation block to people's translations. Empty block WILL BE used by
any ICU FormatMessage library, thus resulting in an empty translation
for "one" category, and that requires immediate fix.

This commit duplicates contents of the "other" plural category.
This commit is contained in:
Sasha Sorokin 2020-07-17 12:08:23 +07:00 committed by GitHub
parent 322d74fc2a
commit 17b1d71536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ export function counterRenderer(counterType, isBold = true) {
return (displayNumber, pluralReady) => ( return (displayNumber, pluralReady) => (
<FormattedMessage <FormattedMessage
id='account.following_counter' id='account.following_counter'
defaultMessage='{count, plural, other {{counter} Following}}' defaultMessage='{count, plural, one {{counter} Following} other {{counter} Following}}'
values={{ values={{
count: pluralReady, count: pluralReady,
counter: renderCounter(displayNumber), counter: renderCounter(displayNumber),