nYears method
Label for the number of years
In en, this message translates to: '{count, plural, =1{one year} other{{count} years}}'
Implementation
@override
String nYears(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: '$countString years',
one: 'one year',
);
return '$_temp0';
}