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 Spanish translation for messages #11

Closed bartoszlenar closed 3 years ago

bartoszlenar commented 3 years ago

Feature description

Feature in action

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

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

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

Feature implementation walkthrough

restebanlm commented 3 years ago

Hi @bartoszlenar . I'm going to work on the adaptation to Spanish.

bartoszlenar commented 3 years ago

Thank you, @restebanlm. If anything in the issue description is not clear enough, or if you need any additional help or technical guidance, let me know in the comments.

restebanlm commented 3 years ago

I hope the pull I sent you is useful.

bartoszlenar commented 3 years ago

It's great. Thank you.

Already merged in #18