react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

How to translate labels and list contents

Open cyr-ius opened this issue 6 months ago • 1 comments

Prerequisites

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 avatar May 19 '25 18:05 cyr-ius

@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

heath-freenome avatar May 23 '25 19:05 heath-freenome