Capabilities.languages returns an array of languages in the preferred order. So if you do this:
var prefLang : String;
var langs : Array = Capabilities.languages;
Then check if it is there:
if(langs) {
// your preferred language is the first one
prefLang = langs[0];
} else {
prefLang = Capabilities.language;
}