You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2018/02/21 12:23:00 UTC

[jira] [Closed] (CB-10256) navigator.globalization.getLocaleName passes wrong parameter to successCallback

     [ https://issues.apache.org/jira/browse/CB-10256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jcesarmobile closed CB-10256.
-----------------------------
    Resolution: Won't Fix

Firefox OS platform is deprecated so closing as won't fix

> 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: cordova-plugin-globalization
>    Affects Versions: 5.4.1
>         Environment: Arch Linux, Firefox OS Simulator
>            Reporter: Sebastian Futschikato
>            Priority: Major
>              Labels: FirefoxOS, triaged
>
> 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
(v7.6.3#76005)

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