go-playground / validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
MIT License
17k stars 1.33k forks source link

How do I dynamically register translated languages?Such as http params #977

Open yigeqiji opened 2 years ago

yigeqiji commented 2 years ago

Package version eg. v9, v10:

v10

Issue, Question or Enhancement:

for example: http params { transLanguage:"en" }

Code sample, to showcase or reproduce:

//virtual code
deankarn commented 2 years ago

https://github.com/go-playground/validator/blob/master/_examples/translations/main.go#L43-L45