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 Chinese (Mandarin) translation #15

Open bartoszlenar opened 3 years ago

bartoszlenar commented 3 years ago

Feature description

Feature in action

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

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

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

Feature implementation walkthrough