[
https://issues.apache.org/jira/browse/CB-14236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16563731#comment-16563731
]
Daniel Wolf commented on CB-14236:
----------------------------------
There's probably some misconception on my side.
I understand that on Android, Cordova uses Chrome as its webview. That is, the
same code that functions as a standalone browser (Chrome) is also used as an
embedded browser within Cordova.
When I run Chrome as a standalone app, JavaScript code within that app that
accesses `navigator.languages` gets the list of preferred languages the user
configured in the Chrome settings, not the list the user configured in the
Android settings.
When I run Cordova on Android, it is my understanding that this JavaScript code
is also executed within Chrome. But this time, code that accessesÂ
`navigator.languages` gets the list of preferred languages the user configured
in the Android settings, not the list the user configured in the Chrome
settings.
So my question is: If the standalone Chrome browser and the embedded webview
share the same code, how does that code know which languages to use?
> navigator.languages only returns a single language on iOS
> ----------------------------------------------------------
>
> Key: CB-14236
> URL: https://issues.apache.org/jira/browse/CB-14236
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-ios
> Affects Versions: [email protected], cordova-ios 4.5.0
> Reporter: Daniel Wolf
> Priority: Major
>
> Most operating systems allow the user to specify not only a single OS locale,
> but a list of prefered locales. On both Android and Windows UWP,
> `navigator.languages` returns the full list of prefered languages. On iOS,
> however, only the first language of the list is returned.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]