How H5P detects the language / is it possible to force one?

Forums: 

Hello.

I'm using H5P embeded in my website ( with help of https://github.com/tunapanda/h5p-standalone ).

It's working very well, however, I could not understand how to tell H5P the desired language, let's say that I want to force the content type to use the same language as defined in website.

So the questions are:

- How H5P detects the language?

- Is it possible to force a specific language?

Thank you in advance,
Tiago

 

Summary: 
Allow to specify language used by H5P

It seems the right way to proceed is to specify the lang attribute of the iframe's HTML.

In the specific library I'm using it can be done by injecting this property: contentData.metadata.defaultLanguage

We're going to give it a try and post back for anyone that find same requirement in future.