Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for AR (generic) #52

Merged
merged 1 commit into from
Dec 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions lib/src/i18n/ar.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import '../locale.dart';

class LocaleAr implements FormValidatorLocale {
const LocaleAr();

@override
String name() => 'ar';

@override
String minLength(String v, int n) =>
'يجب أن يكون عدد الأحرف على الأقل $n حروف';

@override
String maxLength(String v, int n) =>
'يجب أن لا يزيد عدد الأحرف عن $n حرف';


@override
String email(String v) => 'برجاء إدخال عنوان بريد إلكتروني صحيح';

@override
String phoneNumber(String v) => 'برجاء إدخال رقم هاتف صحيح';

@override
String required() => 'برجاء ملء هذه الخانة';

@override
String ip(String v) => 'برجاء إدخال عنوان IP صحيح';

@override
String ipv6(String v) => 'برجاء إدخال عنوان IPv6 صحيح';

@override
String url(String v) => 'برجاء إدخال عنوان URL صحيح';
}