nYearsInSentence method
Label for the number of years
In en, this message translates to: '{count, plural, =1{an one year} other{a {count} years}}'
Implementation
@override
String nYearsInSentence(num count) {
final intl.NumberFormat countNumberFormat = intl.NumberFormat.compact(
locale: localeName,
);
final String countString = countNumberFormat.format(count);
String _temp0 = intl.Intl.pluralLogic(
count,
locale: localeName,
other: 'a $countString years',
one: 'an one year',
);
return '$_temp0';
}