I log into Twitch, and change the language to Italian.
Twitch.ext.onContext((context) => {
console.log(context.language)
})
// Prints "en"
The above code prints “en”.
console.log(window.location)
// Prints "https://localhost:8080/index.html?anchor=video_overlay&language=it&mode=viewer&state=testing"
Note that context.language
does not reflect the Italian language selection. :<