Sebastian Futschikato created CB-10256:
------------------------------------------

             Summary: navigator.globalization.getLocaleName passes wrong 
parameter to successCallback
                 Key: CB-10256
                 URL: https://issues.apache.org/jira/browse/CB-10256
             Project: Apache Cordova
          Issue Type: Bug
          Components: FirefoxOS
    Affects Versions: 5.4.1
         Environment: Arch Linux, Firefox OS Simulator
            Reporter: Sebastian Futschikato


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to