cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascale Dardailler <>
Subject Cordova g11n implementation - Changes proposal
Date Tue, 08 Apr 2014 20:54:28 GMT

The globalization implementation of getLocaleName and getPreferredLanguage 
should return more consistent results across the different platforms, as 
it is very difficult to implement globalized applications. Looking at the 
issue database, other people have also been reported these 
inconsistencies, see:

In order to improve consistencies and ease development, we propose the 

For getPreferredLanguage, 
Android should not return the localized language name,
It would be better to have each platform return zh-Hant and zh-Hans to 
differentiate Traditional from Simplified Chinese, and same for any 
language that needs to be differentiated from the base language. It seems 
that iOS implementation is the correct one.
Need to change the documentation
For getLocaleName 
WindowsPhone 8 implementation is incorrect. Returning country code is not 
A bcp47 compliant locale should be returned, although it could be OK to 
use underscores instead of dashes (as this can easily be managed at a 
higher level).
Need to change the documentation.

Another solution could be to create new APIs...

Please let us know what your thoughts are, or if you have any objection to 
this proposal.

Pascale Dardailler
IBM Worklight, Dojo Toolkit  & ILOG Visu G11n Focal Point

Sauf indication contraire ci-dessus:/ Unless stated otherwise above:
Compagnie IBM France
Siège Social : 17 avenue de l'Europe, 92275 Bois-Colombes Cedex
RCS Nanterre 552 118 465
Forme Sociale : S.A.S.
Capital Social : 655.732.332,20 €
SIREN/SIRET : 552 118 465 03644 - Code NAF 6202A 
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message