nMonths method

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

Label for the number of months

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

Implementation

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