I'm having trouble getting multiple languages to work in my code. Could someone assist me and provide guidance on how to write multiple choices for the property name language?
When I input code like this to display only Dota 2 games in English, everything functions perfectly.
$(document).ready(function() {
$.getJSON( "https://api.twitch.tv/kraken/streams",
{
game:"Dota 2",
language:'en'
},
function ( data ) {}
However, when I attempt to include more languages and use code like this, it does not work:
$(document).ready(function() {
$.getJSON( "https://api.twitch.tv/kraken/streams",
{
game:"Dota 2",
language:['en', 'de', 'fr', 'it', 'ru']
},
function ( data ) {}
You can view the JSON data at this link: