wrongLength method

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

No description provided for @wrongLength.

In en, this message translates to: '{count, plural,=1{{attribute} is the wrong length (should be 1 character)}other{{attribute} is the wrong length (should be {count} characters)}}'

Implementation

@override
String wrongLength(String attribute, int count) {
  return intl.Intl.pluralLogic(
    count,
    locale: localeName,
    zero: 'طول ${attribute} غير مطابق للحد المطلوب (يجب أن يكون ولا حرف)',
    one: 'طول ${attribute} غير مطابق للحد المطلوب (يجب أن يكون حرف واحد)',
    two: 'طول ${attribute} غير مطابق للحد المطلوب (يجب أن يكون حرفان)',
    few:
        'طول ${attribute} غير مطابق للحد المطلوب (يجب أن يكون ${count} أحرف)',
    other:
        'طول ${attribute} غير مطابق للحد المطلوب (يجب أن يكون ${count} حرف)',
  );
}