-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Catalina Neagu <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import '../locale.dart'; | ||
|
||
class LocaleRo implements FormValidatorLocale { | ||
const LocaleRo(); | ||
|
||
@override | ||
String name() => 'ro'; | ||
|
||
@override | ||
String minLength(String v, int n) => | ||
'Câmpul trebuie să aibă cel puțin $n caractere'; | ||
|
||
@override | ||
String maxLength(String v, int n) => | ||
'Câmpul trebuie să aibă cel mult $n caractere'; | ||
|
||
@override | ||
String email(String v) => 'Câmpul nu este o adresă de e-mail validă'; | ||
|
||
@override | ||
String phoneNumber(String v) => 'Câmpul nu este un număr de telefon valid'; | ||
|
||
@override | ||
String required() => 'Câmpul este obligatoriu'; | ||
|
||
@override | ||
String ip(String v) => 'Câmpul nu este o adresă IP validă'; | ||
|
||
@override | ||
String ipv6(String v) => 'Câmpul nu este o adresă IPv6 validă'; | ||
|
||
@override | ||
String url(String v) => 'Câmpul nu este o adresă URL validă'; | ||
} |