Open
Description
- I have looked at the documentation here first?
- I have looked at the examples provided that may showcase my question here?
Package version eg. v9, v10:
v10
Issue, Question or Enhancement:
Hello, the zh and zh_tw in the translation package lack the translation of the "unique" tag, I have to manually register the language to be able to translate normally. I expect it to be driven directly by the library itself.
Code sample, to showcase or reproduce:
v.RegisterTranslation("unique", App.trans, func(ut ut.Translator) error {
return ut.Add("unique", "{0}字段内的值必须唯一", true)
}, func(ut ut.Translator, fe validator.FieldError) string {
t, _ := ut.T("unique", fe.Field())
return t
})