bartoszlenar / Validot

Validot is a performance-first, compact library for advanced model validation. Using a simple declarative fluent interface, it efficiently handles classes, structs, nested members, collections, nullables, plus any relation or combination of them. It also supports translations, custom logic extensions with tests, and DI containers.
MIT License
311 stars 19 forks source link

Add Portuguese translation #13

Closed bartoszlenar closed 3 years ago

bartoszlenar commented 3 years ago

Feature description

Feature in action

var validator = Validator.Factory.Create(
    specification,
    s => s.WithPortugueseTranslation()
);

validator.Settings.Translations["Portuguese"] // this is the full translation dictionary

validator.Validate(model).ToString(translationName: "Portuguese") // gets result error output in Portuguese

Feature implementation walkthrough

bartoszlenar commented 3 years ago

Completed in #20