Markus Tenghamn
8fe074c546
Added ulid validation ( #826 )
3 years ago
Dmitriy
14221d02a5
fix: Fixed panic when use ru lang for translation, added and fixed tests ( #814 )
3 years ago
Dean Karn
6dbf61e046
update deps ( #815 )
3 years ago
cokezhang
61a982014e
enhancement: add zh translations for tag alphaunicode,alphanumunicode,containsrune,startswith,endswith ( #799 )
3 years ago
steveorourke
e40bece342
Add support for jwt validation ( #783 )
3 years ago
amir
e3e38634b1
Add persian translations ( #771 )
4 years ago
masafumi-i
90ab42ba67
fix ja translation ( #792 )
4 years ago
ѵµσɳɠ
a53d64fc35
Postcode validator for value and field ( #759 )
...
* Postcode validator for value and field
* Add translation for postcode rules
Co-authored-by: Dean Karn <Dean.Karn@gmail.com>
4 years ago
Flávio CF Oliveira
d6b17fd90b
Added Translation for pt ( #613 )
...
* Added translations for portuguese [pt]
4 years ago
Kiyan Gauss
b15bf1dead
Add zh,zh_tw datetime translation
5 years ago
cncal
85098861d3
enhancement: add zh translations for tag json, lowercase, uppercase, datetime
5 years ago
alfonsoprado
a98911a366
fix spanish translations
5 years ago
alfonsoprado
c1b73a784d
Add spanish translations
5 years ago
Pantelis Sampaziotis
912fcd16a8
resovle conflict
5 years ago
Pantelis Sampaziotis
14f963703b
Add datetime validation
5 years ago
Pantelis Sampaziotis
5b51bff4e6
Add isLowercase and isUppercase valitation
5 years ago
Pantelis Sampaziotis
581d2698d5
Added isJSON validation
5 years ago
Rustam
eb11afd9a8
Added russian translation
5 years ago
Taylor
e7c70798c9
Add e.164 support
5 years ago
Dean Karn
7e57ca0cf5
convert to go modules
5 years ago
Dean Karn
06f92248de
linting cleanup
5 years ago
baran.asaner
80a8449877
Add Turkish translations
5 years ago
Takeshi Akima
9af2aa2cc3
Fixes Japanese translation ( #433 )
...
* Use ja locale instead of en in ja_test.go
* Comment out calling ut.AddCardinal with locales.PluralRuleOne
because cardinal plural rule 'One' does not exist for locale 'ja'.
6 years ago
akm
578166faf7
Implement translation of ne-items
6 years ago
akm
37128de86f
Add japanese translation
6 years ago
Anderson Guilherme Porto
20357ae332
fix import avoid wrong type when apply custom translates.
6 years ago
Sam Wang
df107f0184
Add English translation for "unique" validation.
6 years ago
Dean Karn
1fa3c8d633
fix indonesian translation test
6 years ago
Sulthon Zainul Habib
38f9a73e57
Add Indonesian translations
6 years ago
kanozec
532cde1085
Add Chinese(zh-tw) translations
6 years ago
wessel.linden@gmail.com
1ae2003487
Add dutch translations
6 years ago
foolin
a2ec0a8018
fix package name
7 years ago
Foolin
d1a82a6cdc
add chinese translations
7 years ago
Foolin
801b2c40bc
update
7 years ago
Foolin
83b055d6df
add chinese lang
7 years ago
Dean Karn
54da7fa48f
fix linting and spelling errors
7 years ago
Afranio Martins
5186bfe8b5
add brazilian portuguese translations
7 years ago
Frederic Delbos
4dbd40f597
add french translations
7 years ago
Russ Egan
15217303f9
Add oneof validation
...
Validates that a string or number value equals one of a set of allowed values. Examples:
validator.Var(“red”, “oneof=red green”)
validator.Var(6, “oneof=6 7 8”)
7 years ago
Geoff Baskwill
866bd2a946
Support translating field errors when field is of kind reflect.Ptr
...
Previously, if fields were of kind `reflect.Ptr`, the translation of
validation errors used the default string, resulting in unexpected
output.
Now the default translations use the field's `Elem()` kind (for example
for `*string` the `Elem()` is `string`), resulting in much more natural
output.
7 years ago
Jawher Moussa
73e8e76de2
Fix universal translator imports so that goimports doesn't get remove them
...
Running goimports on the codebase deletes all the imports of "github.com/go-playground/universal-translator".
The fix consists of explicitly qualifying the import statements with ut.
8 years ago
Dean Karn
cddc415625
perf enhancements + corrected issue with or's
...
- or's weren't reporting the param back in the tag, long standing but noticed issue.
- added validation check for or's when more validations exist after the or.
8 years ago
Dean Karn
a7ca4a1d32
add default translations for "en"
...
- need help creating more.
8 years ago