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