Skip to content

Localization

This content is for v0.7. Switch to the latest version for up-to-date documentation.

val := v.New(v.Options{LocaleCode: "es"}).
Is(v.String(" ", "nombre").Not().Blank())
val := v.New(v.Options{
Locale: &v.Locale{
v.ErrorKeyNotBlank: "{{title}} should not be blank",
},
}).Is(v.String(" ", "name").Not().Blank())