-
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.
- Loading branch information
1 parent
5552dbe
commit 0f2987f
Showing
3 changed files
with
39 additions
and
1 deletion.
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,32 @@ | ||
import '../form_validator_locale.dart'; | ||
|
||
class LocaleFr extends FormValidatorLocale { | ||
@override | ||
String name() => 'fr'; | ||
|
||
@override | ||
String minLength(String v, int n) => | ||
"Le champ doit contenir au moins $n caractère${n > 1 ? 's' : ''}"; | ||
|
||
@override | ||
String maxLength(String v, int n) => | ||
"Le champ ne peut pas contenir plus de $n caractère${n > 1 ? 's' : ''}"; | ||
|
||
@override | ||
String email(String v) => "Adresse email invalide"; | ||
|
||
@override | ||
String phoneNumber(String v) => "Numéro de téléphone invalide"; | ||
|
||
@override | ||
String required() => "Le champ est requis"; | ||
|
||
@override | ||
String ip(String v) => "Le champ n'est pas une adresse IP valide"; | ||
|
||
@override | ||
String ipv6(String v) => "Le champ n'est pas une adresse IPv6 valide"; | ||
|
||
@override | ||
String url(String v) => "Le champ n'est pas une URL valide"; | ||
} |
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