Skip to content

Commit

Permalink
Update zh.go (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
NgeKaworu committed May 1, 2022
1 parent dd2857a commit bc9f9dd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions translations/zh/zh.go
Expand Up @@ -29,6 +29,36 @@ func RegisterDefaultTranslations(v *validator.Validate, trans ut.Translator) (er
translation: "{0}为必填字段",
override: false,
},
{
tag: "required_if",
translation: "{0}为必填字段",
override: false,
},
{
tag: "required_unless",
translation: "{0}为必填字段",
override: false,
},
{
tag: "required_with",
translation: "{0}为必填字段",
override: false,
},
{
tag: "required_with_all",
translation: "{0}为必填字段",
override: false,
},
{
tag: "required_without",
translation: "{0}为必填字段",
override: false,
},
{
tag: "required_without_all",
translation: "{0}为必填字段",
override: false,
},
{
tag: "len",
customRegisFunc: func(ut ut.Translator) (err error) {
Expand Down

0 comments on commit bc9f9dd

Please sign in to comment.