Make pluralize function only return singular text when the value is 1
This commit is contained in:
parent
4da37de55f
commit
f7bb136838
|
@ -15,7 +15,7 @@ export function withoutHTML(string) {
|
|||
}
|
||||
|
||||
export function pluralize(n, singular, plural) {
|
||||
if (n < 2) {
|
||||
if (n == 1) {
|
||||
return singular;
|
||||
} else {
|
||||
return plural;
|
||||
|
|
Loading…
Reference in New Issue