-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow type translations #54
Comments
@siavashkavousi can you please clarify. |
if we have the following message in en and my locale (fa) then I got as you can see |
Makes sense for type names. So it would require a map of type names for each language (and by default english will be used, if the map is not provided). |
What do you mean by "and more"? |
I didn't quite integrate it in my application, but one more thing which I think can be localized is property names. |
That's definitely more complex, it has to be somehow passed via ajv. Maybe ajv-errors can be extended to support i18n. |
Same problem here, is there any workaround? Being able to pass a translate function would be nice |
I have the same problem too. I had a look at the jtd.js and index.js and it seems like the problem is solved for the languages fi, nb, nl and pl. de: '{{#def.t}}muss {{? t == "number" }}eine Zahl{{?? t == "integer"}}eine ganze Zahl{{?? t == "string"}}ein Text{{?? t == "boolean"}} boolescher Wert{{??}}{{=t}}{{?}}{{=n}} sein', it: '{{#def.t}}deve essere {{? t == "number" }}un numero{{?? t == "integer"}}un numero intero{{?? t == "string"}}un testo{{?? t == "boolean"}} booleano{{??}}{{=t}}{{?}}{{=n}}', Would it be possible to add these? |
Hi,
I think there should some way to translate prop.type and things like that.
Thanks.
The text was updated successfully, but these errors were encountered: