I have to build a localized application in JavaScript (jQuery Mobile, phonegap). Each time I ask the language(navigator.language) it returns me "en" even when I set the phone language on French or Spanish.
How can I detect the phone language instead of the navigator language which don't seem to change accordingly to phones?