Hi, I'm trying to get the language that the instructor has set in its preferences from a course tool type building block. I use this instruction in a java servlet: LocaleManagerFactory.getInstance().getLocale().getLocale();
It returns the system language of the learn platform but not the user's one. However, requesting this same servlet from code embedded in jshacks does return the correct language (instructor's preferred one).
Thanks in advance.