ajv-validator / ajv-validator/ajv-i18n
Translate property names
- 主要語言
- JavaScript
- 星號
- 180
- 分支
- 91
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I generate JSON schemas based on thy applications metadata (Entity, Properties, Validation-Rules) etc. and then use ajv-i18n to get translated (german) messages out of AJV that get rendered into the otherwise translated UI.
This works great except that I don't see a way to translate the property names. I get messages like:
sollte das erforderliche Attribut firstName enthalten
The word "firstName" is English and should be "Vorname". I have this text already on hand when generating the JSON schema and even when validating.
How can I feed in my custom property name or let's better say "Property Caption" into the messages?
Btw: From PoV there are two things: a) propertyName (technical, internal) and b) propertyCaption (the thing to show to the user/message).
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。