Skip to content

多语言字段名翻译咨询 #2

@imcolonn

Description

@imcolonn

首先,感谢作者的项目,看了深有启发。

有个疑问,拿这个举例:internal/pkg/req/product.go#L5

多语言中如果涉及其他更多语言包,比如中文繁体、日语等;
这个label中的文案也希望沿用对应目标语言的文案来写入到验证器中,应该如何更好的实现呢?
现在这个label只有固定的中文

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions