Search docs/

Globalization

This plugin obtains information and performs operations specific to the user's locale, language, and timezone.

https://github.com/apache/cordova-plugin-globalization

Premier Version Available

Featuring regular release cycles, security and bug fixes, and guaranteed SLAs.

Available here

Installation

ionic cordova plugin add cordova-plugin-globalizationnpm install @ionic-native/globalization
Ionic Native Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Amazon Fire OS
  • Android
  • Browser
  • iOS
  • Windows

Usage

import { Globalization } from '@ionic-native/globalization/ngx';

constructor(private globalization: Globalization) { }


...


this.globalization.getPreferredLanguage()
  .then(res => console.log(res))
  .catch(e => console.log(e));