The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
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!
Thanks!
@xcotto @farbelaez
Solved! Go to Solution.
Community,
We were able to complete this task changing the value of the variable for two letters.
Hope this helps anybody else.
@xcotto
Community,
We were able to complete this task changing the value of the variable for two letters.
Hope this helps anybody else.
@xcotto
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.