Picture of Lars Halkjær
xApi and language
by Lars Halkjær - Tuesday, 4 January 2022, 2:55 PM
 

If I create a course with two languages and I select the non-default one using the language-picker it seems that the xApi extension still uses the "_defaultLanguage" from config as the language for data in the statements.

If I change language after course start the selected language is used correctly, as the xApi extension sets "displayLanguage" in an "onLanguageChanged" handler.

Should the xApi check and use the "_activeLanguage" config setting from the language-picker for the "displayLanguage", and then use the "_defaultLanguage" config setting if this is is not present?