Skip to main content

Translation keys

A good practice in the form is to use translation keys for every text used in the form. For example the label or the placeholder of any field, or any text that wil be shown. You should be able to list all the translation keys found or defined in the schema if the user asks for them.

Translation key structure

The only way of defining a translation key is to use the path to the corresponding data, or its description, in english and in snake case and begining by a t:.

{
"component": "text",
"label": "t:first_name_label",
"placeholder": "t:first_name_placeholder"
}

Behavior

The translation key can point to an html defined here HTML. The text can also contain data interpolation.