tooLong method

  1. @override
String tooLong(
  1. String attribute,
  2. int count
)
override

No description provided for @tooLong.

In en, this message translates to: '{count, plural,=1{{attribute} is too long (maximum is 1 character)}other{{attribute} is too long (maximum is {count} characters)}'

Implementation

@override
String tooLong(String attribute, int count) {
  return intl.Intl.pluralLogic(
    count,
    locale: localeName,
    zero: 'محتوى ${attribute} أطول من اللّازم (الحد الأقصى هو ولا حرف)',
    one: 'محتوى ${attribute} أطول من اللّازم (الحد الأقصى هو حرف واحد)',
    two: 'محتوى ${attribute} أطول من اللّازم (الحد الأقصى هو حرفان)',
    few: 'محتوى ${attribute} أطول من اللّازم (الحد الأقصى هو ${count} حروف)',
    other: 'محتوى ${attribute} أطول من اللّازم (الحد الأقصى هو ${count} حرف)',
  );
}