Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
5.4.1
-
None
-
Arch Linux, Firefox OS Simulator
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