Thread:Project:Support desk/Using messages in JavaScript/reply (6)

(New post since apparently editing doesn't actually work.) I see what the problem is. You're using $.when, which when passed multiple values puts them in an array. The API returns two objects.

I also note that you're including mediawiki.jqueryMsg, which is rather overkill for the basic message you're using. You only use it if you need more advanced parsing (int, plural, gender, links, etc.). This means you don't need to use $.when, so you wouldn't need the [0].