day method
Print amount
day for the corresponding locale. The unit is abbreviated
if abbreviated
is set to true.
Implementation
@override
String day(int amount, [bool abbreviated = true]) {
if (abbreviated) {
return 'ي';
} else {
if (amount == 1) {
return 'يوم';
} else if (amount == 2) {
return 'يومين';
} else if (amount > 2 && amount < 11) {
return 'ايام';
} else if (amount > 10) {
return 'يوم';
}
return 'ايام';
}
}