AnsweredAssumed Answered

Identify the language of user with JS

Question asked by Fede Arbelaez Employee on May 26, 2016
Latest reply on May 26, 2016 by Fede Arbelaez

Hello Canvas gurus!

We are trying to identify the variable that keeps the language set by the student on their profile. We used to use the variable  ENV.LOCALE to identify the student profile language and it used to work fine but not on the new UI.

This is an example of the code we used to have on the old interface but it's not working on the new UI.

if (ENV.LOCALE === "es_ES")  {

     // Spanish text

} else if (ENV.LOCALE === "en_US")  {

     // English text



Any help will be appreciated!




Xavier Cotto Fede Arbelaez