cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Khandelwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-10256) navigator.globalization.getLocaleName passes wrong parameter to successCallback
Date Thu, 07 Jan 2016 19:26:39 GMT

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

Nikhil Khandelwal updated CB-10256:
-----------------------------------
    Labels: FirefoxOS triaged  (was: triaged)

> 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: Plugin Globalization
>    Affects Versions: 5.4.1
>         Environment: Arch Linux, Firefox OS Simulator
>            Reporter: Sebastian Futschikato
>              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
(v6.3.4#6332)

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


Mime
View raw message