Add optional localization support for form labels - #12
Conversation
|
Hi, thank you very much for your contribution which seems to be very useful for this project! I would like to merge it but I have to review first and that is a bit difficult because it seems you have applied some auto-formatter and the PR now consists or > 1000 changed lines. Could you please clean up the PR so that it only contains the actual changes? That would be great. Thanks again for your contribution! :-) |
|
Hi, Thanks for reviewing the PR! Apologies for the formatting issues. I've cleaned it up and removed unnecessary changes. The PR now only contains the relevant updates. I've pushed the updated version. Let me know if everything looks good! Thanks again, |
|
I made a small commit to ensure that Thank you very much for that contribution, this will be very useful to other including myself! |
Summary
This PR adds optional localization (i18n) support to BlazorJsonForm.
Labels, helper texts and dictionary captions can now be localized using schema extensions, while keeping full backward compatibility.
How it works
IJsonFormLocalizerimplementation.x-label,x-helperText,x-keyLabelandx-valueLabelare treated as localization keys.Key points
IStringLocalizer, etc.)Example
Documentation
The README has been updated with a new section describing how to enable and use localization.