nMonthsInSentence method

  1. @override
String nMonthsInSentence(
  1. num count
)
override

Label for the number of months

In en, this message translates to: '{count, plural, =1{an one month} other{a {count} months}}'

Implementation

@override
String nMonthsInSentence(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 months',
    one: 'an one month',
  );
  return '$_temp0';
}