getAppropriateTranslation method

String getAppropriateTranslation()

Gets the appropriate translation string based on the value and locale

Implementation

String getAppropriateTranslation() {
  final category = PluralRules.getPluralCategory(value, locale);
  return getTranslationForCategory(category) ?? other;
}