-
Notifications
You must be signed in to change notification settings - Fork 3
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
3131bc6
commit 59730bb
Showing
9 changed files
with
168 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 1.0.0 | ||
|
||
* Production release | ||
|
||
## 0.0.7 | ||
|
||
* Added `when` and `setValidator` | ||
|
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,10 @@ | ||
import 'package:lucid_validation/lucid_validation.dart'; | ||
|
||
class CustomLanguageManager extends LanguageManager { | ||
CustomLanguageManager() { | ||
addTranslation(Culture('pt', 'BR'), 'passwordEqualTo', "'{PropertyName}' deve ser igual."); | ||
addTranslation(Culture('pt'), 'passwordEqualTo', "'{PropertyName}' deve ser igual."); | ||
addTranslation(Culture('en', 'US'), 'passwordEqualTo', "'{PropertyName}' must be equal."); | ||
addTranslation(Culture('en'), 'passwordEqualTo', "'{PropertyName}' must be equal."); | ||
} | ||
} |
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
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
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,30 @@ | ||
import '../language.dart'; | ||
|
||
class SpanishLanguage extends Language { | ||
SpanishLanguage() | ||
: super({ | ||
Language.code.equalTo: "'{PropertyName}' debe ser igual a '{ComparisonValue}'.", | ||
Language.code.greaterThan: "'{PropertyName}' debe ser mayor que '{ComparisonValue}'.", | ||
Language.code.isEmpty: "'{PropertyName}' debe estar vacío.", | ||
Language.code.isNotNull: "'{PropertyName}' no puede ser nulo.", | ||
Language.code.isNull: "'{PropertyName}' debe ser nulo.", | ||
Language.code.lessThan: "'{PropertyName}' debe ser menor que '{ComparisonValue}'.", | ||
Language.code.matchesPattern: "'{PropertyName}' no tiene el formato correcto.", | ||
Language.code.max: "'{PropertyName}' debe ser menor o igual a {MaxValue}. Has ingresado {PropertyValue}.", | ||
Language.code.maxLength: "El tamaño de '{PropertyName}' debe ser de {MaxLength} caracteres o menos. Has ingresado {TotalLength} caracteres.", | ||
Language.code.min: "'{PropertyName}' debe ser mayor o igual a {MinValue}. Has ingresado {PropertyValue}.", | ||
Language.code.minLength: "El tamaño de '{PropertyName}' debe ser de al menos {MinLength} caracteres. Has ingresado {TotalLength} caracteres.", | ||
Language.code.mustHaveLowercase: "'{PropertyName}' debe tener al menos una letra minúscula.", | ||
Language.code.mustHaveNumber: "'{PropertyName}' debe tener al menos un dígito ('0'-'9').", | ||
Language.code.mustHaveSpecialCharacter: "'{PropertyName}' debe tener al menos un carácter no alfanumérico.", | ||
Language.code.mustHaveUppercase: "'{PropertyName}' debe tener al menos una letra mayúscula.", | ||
Language.code.notEmpty: "'{PropertyName}' no puede estar vacío.", | ||
Language.code.notEqualTo: "'{PropertyName}' no puede ser igual a '{ComparisonValue}'.", | ||
Language.code.range: "'{PropertyName}' debe estar entre {From} y {To}. Has ingresado {PropertyValue}.", | ||
Language.code.validCEP: "'{PropertyName}' no es un CEP válido.", | ||
Language.code.validCPF: "'{PropertyName}' no es un CPF válido.", | ||
Language.code.validCNPJ: "'{PropertyName}' no es un CNPJ válido.", | ||
Language.code.validCreditCard: "'{PropertyName}' no es un número de tarjeta de crédito válido.", | ||
Language.code.validEmail: "'{PropertyName}' no es una dirección de correo electrónico válida.", | ||
}); | ||
} |
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