react-jsonschema-form
react-jsonschema-form copied to clipboard
How to translate labels and list contents
Prerequisites
- [x] I have read the documentation
What theme are you using?
utils
What is your question?
I'm having trouble translating field labels and list contents. I can't find a solution with translateString. Is this possible? In the meantime, I've included a function in a custom FieldTemplate. Is this possible without it?
@cyr-ius The easiest way to translate is via the ui:title option in the UI Schema. In the past, I have written a code generator that walked the schema and created a uiSchema that altered the way the form was presented. As for the list contents part of your question, I don't understand what you are asking for. Is there a use-case you can provide? And using a FieldTemplate override is a good choice for solving this