Updating H5P Translations #
The structure of the editor is defined in the each content types semantics.json
file which would be on the top level of the directory. If semantics.json
is changed, the translation files must be updated as well.
Let’s have a look at the True False content type’s semantics file and the text field with the "name": "question"
:
{
"name": "question",
"type": "text",
"widget": "html",
"label": "Question",
...
},
This field is translated in the translation in the language
directory. We can look a the German /language/de.json
translation file as an example:
{
"label": "Frage"
},
Note that language files expect the same structure as the semantics.json
.