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

navigator.globalization.getLocaleName passes wrong parameter to successCallback

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Hi =)
      In my Firefox OS simulator, navigator.globalization.getLocaleName() passes the locale value directly to the successCallback. According to the documentation[1] the successCallback should receive an object with the locale on the value property and on my android phone it works like this.

      I posted it on stackoverflow[2] and the user "daserge" spotted the bug in the cordova sources:
      https://github.com/apache/cordova-plugin-globalization/blob/e8baaaa8db58973c74ab44397a5c7e85ca8967dc/src/firefoxos/GlobalizationProxy.js#L96

      [1] https://www.npmjs.com/package/cordova-plugin-globalization#navigator-globalization-getlocalename
      [2] http://stackoverflow.com/questions/34432628/navigator-globalization-getlocalename-bug-in-cordova-or-firefox-os-simulator

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            futschikato Sebastian Futschikato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment