LiddleLaLoo LiddleLaLoo - 11 months ago 65
iOS Question

How can I detect the system language of an iOS device using JavaScript?

I have found this previous question but it uses C. Is there a way to do this through JQuery or JavaScript?

Answer Source

Below method will help you to find your device language using Cordova/Phonegap.

function checkLanguage() {
        function (language) {    
            alert('language: ' + language.value + '\n');
        function () {
            alert('Error getting language\n');

Note: Check the Cordova Globalization plugin documentation for more.