[Globalization Plugin] Globalization Plugin - Locale not returned on Android

[Globalization Plugin] Globalization Plugin - Locale not returned on Android

  
Forge Component
(2)
Published on 2016-10-30 by André Vieira
2 votes
Published on 2016-10-30 by André Vieira

The Globalization Plugin does not read the preferred language correctly on Android devices if the format does not contain a comma, as listed on the Cordova documentation page for the plugin.


Returns the ISO 639-1 two-letter language code, upper case ISO 3166-1 country code and variant separated by hyphens. Examples: "en", "en-US", "US"

https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-globalization/#android-quirks