You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In Brazilian Portuguese, the zero is considered a plural.
Like: 0 apples, 0 transactions, and so on..
The Intl.plural is incorrectly resolving ZERO as ONE.
To Reproduce
Correct result for en_US:
import'package:intl/intl.dart';
voidmain() {
final number =0;
final other ='0 apples';
final one ='0 apple';
final plural =Intl.plural(
number,
one: one,
other: other,
);
print(plural);
//PRINTS: 0 apples
}
Incorrect result for pt_BR:
import'package:intl/intl.dart';
voidmain() {
Intl.defaultLocale ='pt_BR';
final number =0;
final other ='0 apples';
final one ='0 apple';
final plural =Intl.plural(
number,
one: one,
other: other,
);
print(plural);
//PRINTS: 0 apple
}
The text was updated successfully, but these errors were encountered:
Describe the bug
In Brazilian Portuguese, the zero is considered a plural.
Like: 0 apples, 0 transactions, and so on..
The
Intl.plural
is incorrectly resolving ZERO as ONE.To Reproduce
Correct result for
en_US
:Incorrect result for
pt_BR
:The text was updated successfully, but these errors were encountered: