Content type displayed according to web browser language

First of all, I'm not certain if I am posting in the right place and if this has already been answered, but I don't think it has been answered, I'm sorry if it's not the case.

We're a Canadian-based company and need our content to be bilingual (French & English).

Our eLearning has been built on Wix but we'd love to add more dynamic features, so we've turned to H5P.  The only issue we're facing is that when we add the code snippet in an iFrame on Wix, it can only be shown in the language it was created on H5P (English), and we cannot add a new iFrame code with the content in another language (French).

 

That being said, they've suggested that our content on H5P be dynamic according to the browser language (?language=de&display=undefined) so that our H5P content would be displayed in English if they're on the English eLearning page and French if on the French eLearning page.

 

Would anybody be aware as to where I can translate our content to make this happen?

 

Thanks in advance!

Content types: 
otacke's picture

Hi!

Couple of things, just for clarification maybe:

If your site runs WordPress, you should be able to use the shortcode of a content, e.g. [h5p id="1"]. If WIX prevents this from working for whatever reason, you can use the iframe embed link as well, but it will prevent you from receiving scores and may have other side effects.

No matter whether you use the shortcode or iframe embed code, you should be able to put multiple H5P contents onto one page. This is not something that H5P limits. Again, I don't know what WIX does.

You can create content in one language, then clone it, change the clone's language (both by changing text that you entered any by selecting the right language in the "text overrides and translations" section in the editor). You can then add both contents to a site.

H5P itself does unfortunately neither support multiple languages for one content, nor does the H5P plugin for WordPress offer a mechanism to display different contents based on either the browser language or a URL fragment.

Adding that functionality would be a feature request. Since the H5P core team plans to rewrite H5P anyway, I doubt that they would pick this request up any time soon, but they'd rather focus on "H5P version 2" and either build that feature in right away or add it later.