MCPcopy Create free account
hub / github.com/apache/answer / getTran

Function getTran

internal/base/validator/validator.go:113–119  ·  view source on GitHub ↗
(lo locales.Translator)

Source from the content-addressed store, hash-verified

111}
112
113func getTran(lo locales.Translator) ut.Translator {
114 tran, ok := ut.New(lo, lo).GetTranslator(lo.Locale())
115 if !ok {
116 panic(fmt.Sprintf("not found translator %s", lo.Locale()))
117 }
118 return tran
119}
120
121func NotBlank(fl validator.FieldLevel) (res bool) {
122 field := fl.Field()

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected