plural method
Translates and pluralizes based on count.
Expects keys key.one, key.other (and optionally key.zero, key.few,
key.many).
Implementation
String plural(
String key,
int count, {
Map<String, String>? params,
}) {
final String category = _pluralCategory(count);
final String resolved = translate('$key.$category', params: params);
return resolved.replaceAll('{count}', count.toString());
}