Skip to content

The zh and zh_tw translation packages are missing translations for the "unique" tag #879

Open
@dnyz520

Description

@dnyz520
  • 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
	})

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions