All text is currently hardcoded in the branching scenario editor and need to be added to a language pack.
For example look at h5p-editor-three-image.
Context can be used to get the text as seen there. If a file is a functional component, don’t introduce context to it, but send the text in as a prop.
Great adding all that text to the language file. I did however find more missing translations as linked to below. Please fix all this as well as my comments on the commit.
All tour massages inside editor.js
The whole render function in editor.js
Â
Remove TODO:
Could you change the name of the helpers file to something more descriptive?
Looks like all text is added now. Very good. I still see the todo here https://github.com/h5p/h5p-editor-branching-scenario/blob/5a5252e06acefe34c1e8f70036abc98a580370a4/src/scripts/components/ContentTypeMenu.js#L13 and that the tooltipScoringOptions has html tags in it.