Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4822

globalization.getLocaleName does not always return the real country setting

    XMLWordPrintableJSON

Details

    Description

      Due to the documentation "globalization.getLocaleName" returns the locale identifier of the browser. Unfortunately on some devices (e.g. iOS) the browsers seem to return some kind of "fake" locale. For example, when I go in my iPhone's settings and set language: en and region: uk, globalization.getLocaleName returns "en_US" though I would expect "en_UK".

      Is there any way you guys can make Cordova return the "real region" set in the phones settings - and not what the phone's browser thinks?

      Btw: We are using Telerik's Icenium. They are currently working with Cordova 2.7., so maybe this issue has already been improved/fixed in later Cordova versions?

      Attachments

        Activity

          People

            Unassigned Unassigned
            softwarea_ Ingmar Bode
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: