Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 381 Bytes

constructor.md

File metadata and controls

20 lines (13 loc) · 381 Bytes

[new] Globalize( locale|cldr )

Create a Globalize instance.

locale|cldr

Locale string or Cldr instance of the instance.

Example

var en = new Globalize( "en" );

// You can optionally omit the `new` operator.
var pt = Globalize( "pt" );

en.formatNumber( 3.1415 ); // 3.142
pt.formatNumber( 3.1415 ); // 3,142