PGB Example Core using the Cordova 'Globalization' plugin using cli-6.0.0
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
app.js
buttons.css
config.xml
ecmaintl.js
favicon-48x48.png
globalization.js
index.html

README.md

pgb-example-core-globalization

Phonegap Build example for core plugin Cordova 'Geolocation' using cli-6.0.0

This app uses the Cordova 'Device' & 'Globalization' plugin.

NOTE: The plugin is being deprecated. Migration is in process. Read detail on this blog post => Migrating from the Globalization Plugin. The blog suggests this mozilla article as a resource.

ECMAScript Internationalization API Specification will replace this plugin.

globalizationPlugin.init()

The following labels which are next to the App Version at the top of the screen are debugging aids. The values for these labels are written with black text on a white background. If the background color changes, the function ECMAIntlTest() and the method globalizationPlugin.init() method have run.

  • window.globalization:
  • window.Intl:

NOTE: My test platform no longer activates the plugin, so I cannot test this app in full.

Objects

  • GlobalizationError

Methods

Called

  • navigator.globalization.getPreferredLanguage
  • navigator.globalization.getLocaleName
  • navigator.globalization.isDayLightSavingsTime
  • navigator.globalization.getFirstDayOfWeek

Not Called

  • navigator.globalization.dateToString
  • navigator.globalization.stringToDate
  • navigator.globalization.getDatePattern
  • navigator.globalization.getDateNames
  • navigator.globalization.numberToString
  • navigator.globalization.stringToNumber
  • navigator.globalization.getNumberPattern
  • navigator.globalization.getCurrencyPattern