You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Edna Morales (JIRA)" <ji...@apache.org> on 2014/09/10 20:30:34 UTC

[jira] [Commented] (CB-4822) globalization.getLocaleName does not always return the real country setting

    [ https://issues.apache.org/jira/browse/CB-4822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14128887#comment-14128887 ] 

Edna Morales commented on CB-4822:
----------------------------------

I have verified that this issue was fixed on iOS. Having the langauge set to English and the region to US returns en-US. Changing the region to UK returns en-GB.

> globalization.getLocaleName does not always return the real country setting
> ---------------------------------------------------------------------------
>
>                 Key: CB-4822
>                 URL: https://issues.apache.org/jira/browse/CB-4822
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Plugin Globalization
>    Affects Versions: 2.7.0
>            Reporter: Ingmar Bode
>
> Due to the documentation "globalization.getLocaleName" returns the locale identifier of the browser. Unfortunately on some devices (e.g. iOS) the browsers seem to return some kind of "fake" locale. For example, when I go in my iPhone's settings and set language: en and region: uk, globalization.getLocaleName returns "en_US" though I would expect "en_UK".
> Is there any way you guys can make Cordova return the "real region" set in the phones settings - and not what the phone's browser thinks?
> Btw: We are using Telerik's Icenium. They are currently working with Cordova 2.7., so maybe this issue has already been improved/fixed in later Cordova versions?



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