Comparing version 1.1.0-rc.4 to 1.1.0-rc.5
/** | ||
* Globalize Runtime v1.1.0-rc.4 | ||
* Globalize Runtime v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize Runtime v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.1.0-rc.4 | ||
* Globalize Runtime v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize Runtime v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.1.0-rc.4 | ||
* Globalize Runtime v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize Runtime v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.1.0-rc.4 | ||
* Globalize Runtime v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize Runtime v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.1.0-rc.4 | ||
* Globalize Runtime v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize Runtime v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.1.0-rc.4 | ||
* Globalize Runtime v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize Runtime v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.1.0-rc.4 | ||
* Globalize Runtime v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize Runtime v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize Runtime v1.1.0-rc.4 | ||
* Globalize Runtime v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize Runtime v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize Runtime v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -43,3 +43,4 @@ */ | ||
var runtimeKey = Globalize._runtimeKey, | ||
var formatMessage = Globalize._formatMessage, | ||
runtimeKey = Globalize._runtimeKey, | ||
validateParameterPresence = Globalize._validateParameterPresence, | ||
@@ -50,8 +51,6 @@ validateParameterTypeNumber = Globalize._validateParameterTypeNumber; | ||
/** | ||
* format( value, unit, pluralGenerator, numberFormatter ) | ||
* format( value, numberFormatter, pluralGenerator, unitProperies ) | ||
* | ||
* @value [Number] | ||
* | ||
* @unitProperies [Object]: localized unit data from cldr. | ||
* | ||
* @numberFormatter [Object]: A numberFormatter from Globalize.numberFormatter. | ||
@@ -61,2 +60,4 @@ * | ||
* | ||
* @unitProperies [Object]: localized unit data from cldr. | ||
* | ||
* Format units such as seconds, minutes, days, weeks, etc. | ||
@@ -72,3 +73,3 @@ * | ||
*/ | ||
var unitFormat = function( value, unitProperties, numberFormatter, pluralGenerator ) { | ||
var unitFormat = function( value, numberFormatter, pluralGenerator, unitProperties ) { | ||
var compoundUnitPattern = unitProperties.compoundUnitPattern, dividend, dividendProperties, | ||
@@ -100,3 +101,3 @@ formattedValue, divisor, divisorProperties, message, pluralValue; | ||
var unitFormatterFn = function( unitProperties, numberFormatter, pluralGenerator ) { | ||
var unitFormatterFn = function( numberFormatter, pluralGenerator, unitProperties ) { | ||
return function unitFormatter( value ) { | ||
@@ -106,3 +107,3 @@ validateParameterPresence( value, "value" ); | ||
return unitFormat( value, unitProperties, numberFormatter, pluralGenerator ); | ||
return unitFormat( value, numberFormatter, pluralGenerator, unitProperties ); | ||
}; | ||
@@ -109,0 +110,0 @@ |
/** | ||
* Globalize v1.1.0-rc.4 | ||
* Globalize v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/*! | ||
* Globalize v1.1.0-rc.4 | ||
* Globalize v1.1.0-rc.5 | ||
* | ||
@@ -10,3 +10,3 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
@@ -13,0 +13,0 @@ (function( root, factory ) { |
/** | ||
* Globalize v1.1.0-rc.4 | ||
* Globalize v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.1.0-rc.4 | ||
* Globalize v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.1.0-rc.4 | ||
* Globalize v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.1.0-rc.4 | ||
* Globalize v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.1.0-rc.4 | ||
* Globalize v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -16,0 +16,0 @@ */ |
/** | ||
* Globalize v1.1.0-rc.4 | ||
* Globalize v1.1.0-rc.5 | ||
* | ||
@@ -10,6 +10,6 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
/*! | ||
* Globalize v1.1.0-rc.4 2015-10-20T16:52Z Released under the MIT license | ||
* Globalize v1.1.0-rc.5 2015-10-21T11:52Z Released under the MIT license | ||
* http://git.io/TrdQbw | ||
@@ -49,8 +49,6 @@ */ | ||
/** | ||
* format( value, unit, pluralGenerator, numberFormatter ) | ||
* format( value, numberFormatter, pluralGenerator, unitProperies ) | ||
* | ||
* @value [Number] | ||
* | ||
* @unitProperies [Object]: localized unit data from cldr. | ||
* | ||
* @numberFormatter [Object]: A numberFormatter from Globalize.numberFormatter. | ||
@@ -60,2 +58,4 @@ * | ||
* | ||
* @unitProperies [Object]: localized unit data from cldr. | ||
* | ||
* Format units such as seconds, minutes, days, weeks, etc. | ||
@@ -71,3 +71,3 @@ * | ||
*/ | ||
var unitFormat = function( value, unitProperties, numberFormatter, pluralGenerator ) { | ||
var unitFormat = function( value, numberFormatter, pluralGenerator, unitProperties ) { | ||
var compoundUnitPattern = unitProperties.compoundUnitPattern, dividend, dividendProperties, | ||
@@ -99,3 +99,3 @@ formattedValue, divisor, divisorProperties, message, pluralValue; | ||
var unitFormatterFn = function( unitProperties, numberFormatter, pluralGenerator ) { | ||
var unitFormatterFn = function( numberFormatter, pluralGenerator, unitProperties ) { | ||
return function unitFormatter( value ) { | ||
@@ -105,3 +105,3 @@ validateParameterPresence( value, "value" ); | ||
return unitFormat( value, unitProperties, numberFormatter, pluralGenerator ); | ||
return unitFormat( value, numberFormatter, pluralGenerator, unitProperties ); | ||
}; | ||
@@ -294,3 +294,3 @@ | ||
pluralGenerator = this.pluralGenerator(); | ||
returnFn = unitFormatterFn( properties, numberFormatter, pluralGenerator ); | ||
returnFn = unitFormatterFn( numberFormatter, pluralGenerator, properties ); | ||
@@ -297,0 +297,0 @@ runtimeBind( args, this.cldr, returnFn, [ numberFormatter, pluralGenerator, properties ] ); |
/*! | ||
* Globalize v1.1.0-rc.4 | ||
* Globalize v1.1.0-rc.5 | ||
* | ||
@@ -10,3 +10,3 @@ * http://github.com/jquery/globalize | ||
* | ||
* Date: 2015-10-20T16:52Z | ||
* Date: 2015-10-21T11:52Z | ||
*/ | ||
@@ -13,0 +13,0 @@ |
@@ -72,3 +72,3 @@ /** | ||
// Use Globalize to format dates. | ||
document.getElementById( "date" ).innerHTML = en.formatDate( new Date(), { | ||
document.getElementById( "date" ).textContent = en.formatDate( new Date(), { | ||
datetime: "medium" | ||
@@ -79,20 +79,20 @@ }); | ||
number = en.numberFormatter(); | ||
document.getElementById( "number" ).innerHTML = number( 12345.6789 ); | ||
document.getElementById( "number" ).textContent = number( 12345.6789 ); | ||
// Use Globalize to format currencies. | ||
document.getElementById( "currency" ).innerHTML = en.formatCurrency( 69900, "USD" ); | ||
document.getElementById( "currency" ).textContent = en.formatCurrency( 69900, "USD" ); | ||
// Use Globalize to get the plural form of a numeric value. | ||
document.getElementById( "plural-number" ).innerHTML = number( 12345.6789 ); | ||
document.getElementById( "plural-form" ).innerHTML = en.plural( 12345.6789 ); | ||
document.getElementById( "plural-number" ).textContent = number( 12345.6789 ); | ||
document.getElementById( "plural-form" ).textContent = en.plural( 12345.6789 ); | ||
// Use Globalize to format a message with plural inflection. | ||
like = en.messageFormatter( "like" ); | ||
document.getElementById( "message-0" ).innerHTML = like( 0 ); | ||
document.getElementById( "message-1" ).innerHTML = like( 1 ); | ||
document.getElementById( "message-2" ).innerHTML = like( 2 ); | ||
document.getElementById( "message-3" ).innerHTML = like( 3 ); | ||
document.getElementById( "message-0" ).textContent = like( 0 ); | ||
document.getElementById( "message-1" ).textContent = like( 1 ); | ||
document.getElementById( "message-2" ).textContent = like( 2 ); | ||
document.getElementById( "message-3" ).textContent = like( 3 ); | ||
// Use Globalize to format a relative time. | ||
document.getElementById( "relative-time" ).innerText = en.formatRelativeTime( -35, "second" ); | ||
document.getElementById( "relative-time" ).textContent = en.formatRelativeTime( -35, "second" ); | ||
@@ -99,0 +99,0 @@ document.getElementById( "requirements" ).style.display = "none"; |
@@ -11,19 +11,19 @@ var currencyFormatter, dateFormatter, numberFormatter, relativeTimeFormatter, startTime, | ||
document.getElementById( "intro-1" ).innerHTML = Globalize.formatMessage( "intro-1" ); | ||
document.getElementById( "intro-1" ).textContent = Globalize.formatMessage( "intro-1" ); | ||
// Standalone table. | ||
document.getElementById( "currency-label" ).innerHTML = Globalize.formatMessage( "currency-label" ); | ||
document.getElementById( "currency" ).innerHTML = currencyFormatter( 69900 ); | ||
document.getElementById( "currency-label" ).textContent = Globalize.formatMessage( "currency-label" ); | ||
document.getElementById( "currency" ).textContent = currencyFormatter( 69900 ); | ||
document.getElementById( "date-label" ).innerHTML = Globalize.formatMessage( "date-label" ); | ||
document.getElementById( "date" ).innerHTML = dateFormatter( new Date() ); | ||
document.getElementById( "date-label" ).textContent = Globalize.formatMessage( "date-label" ); | ||
document.getElementById( "date" ).textContent = dateFormatter( new Date() ); | ||
document.getElementById( "number-label" ).innerHTML = Globalize.formatMessage( "number-label" ); | ||
document.getElementById( "number" ).innerHTML = numberFormatter( 12345.6789 ); | ||
document.getElementById( "number-label" ).textContent = Globalize.formatMessage( "number-label" ); | ||
document.getElementById( "number" ).textContent = numberFormatter( 12345.6789 ); | ||
document.getElementById( "relative-time-label" ).innerHTML = Globalize.formatMessage( "relative-time-label" ); | ||
document.getElementById( "relative-time" ).innerHTML = relativeTimeFormatter( 0 ); | ||
document.getElementById( "relative-time-label" ).textContent = Globalize.formatMessage( "relative-time-label" ); | ||
document.getElementById( "relative-time" ).textContent = relativeTimeFormatter( 0 ); | ||
// Messages. | ||
document.getElementById( "message-1" ).innerHTML = Globalize.formatMessage( "message-1", { | ||
document.getElementById( "message-1" ).textContent = Globalize.formatMessage( "message-1", { | ||
currency: currencyFormatter( 69900 ), | ||
@@ -35,3 +35,3 @@ date: dateFormatter( new Date() ), | ||
document.getElementById( "message-2" ).innerHTML = Globalize.formatMessage( "message-2", { | ||
document.getElementById( "message-2" ).textContent = Globalize.formatMessage( "message-2", { | ||
count: 3 | ||
@@ -47,5 +47,5 @@ }); | ||
var elapsedTime = +( ( startTime - new Date() ) / 1000 ).toFixed( 0 ); | ||
document.getElementById( "date" ).innerHTML = dateFormatter( new Date() ); | ||
document.getElementById( "relative-time" ).innerHTML = relativeTimeFormatter( elapsedTime ); | ||
document.getElementById( "message-1" ).innerHTML = Globalize.formatMessage( "message-1", { | ||
document.getElementById( "date" ).textContent = dateFormatter( new Date() ); | ||
document.getElementById( "relative-time" ).textContent = relativeTimeFormatter( elapsedTime ); | ||
document.getElementById( "message-1" ).textContent = Globalize.formatMessage( "message-1", { | ||
currency: currencyFormatter( 69900 ), | ||
@@ -52,0 +52,0 @@ date: dateFormatter( new Date() ), |
@@ -7,3 +7,3 @@ var like, number; | ||
// Use Globalize to format dates. | ||
document.getElementById( "date" ).innerHTML = Globalize.formatDate( new Date(), { | ||
document.getElementById( "date" ).textContent = Globalize.formatDate( new Date(), { | ||
datetime: "medium" | ||
@@ -14,17 +14,17 @@ }); | ||
number = Globalize.numberFormatter(); | ||
document.getElementById( "number" ).innerHTML = number( 12345.6789 ); | ||
document.getElementById( "number" ).textContent = number( 12345.6789 ); | ||
// Use Globalize to format currencies. | ||
document.getElementById( "currency" ).innerHTML = Globalize.formatCurrency( 69900, "USD" ); | ||
document.getElementById( "currency" ).textContent = Globalize.formatCurrency( 69900, "USD" ); | ||
// Use Globalize to get the plural form of a numeric value. | ||
document.getElementById( "plural-number" ).innerHTML = number( 12345.6789 ); | ||
document.getElementById( "plural-form" ).innerHTML = Globalize.plural( 12345.6789 ); | ||
document.getElementById( "plural-number" ).textContent = number( 12345.6789 ); | ||
document.getElementById( "plural-form" ).textContent = Globalize.plural( 12345.6789 ); | ||
// Use Globalize to format a message with plural inflection. | ||
like = Globalize.messageFormatter( "like" ); | ||
document.getElementById( "message-0" ).innerHTML = like( 0 ); | ||
document.getElementById( "message-1" ).innerHTML = like( 1 ); | ||
document.getElementById( "message-2" ).innerHTML = like( 2 ); | ||
document.getElementById( "message-3" ).innerHTML = like( 3 ); | ||
document.getElementById( "message-0" ).textContent = like( 0 ); | ||
document.getElementById( "message-1" ).textContent = like( 1 ); | ||
document.getElementById( "message-2" ).textContent = like( 2 ); | ||
document.getElementById( "message-3" ).textContent = like( 3 ); | ||
@@ -31,0 +31,0 @@ // Use Globalize to format a relative time. |
@@ -17,11 +17,15 @@ # Hello World (plain javascript) | ||
Globalize's dependencies are listed on [Getting | ||
The demo requires Globalize and its dependencies. Globalize's dependencies are listed on [Getting | ||
Started](../../README.md#dependencies), and the only one is | ||
[cldrjs](https://github.com/rxaviers/cldrjs). You are free to fetch it the way | ||
you want. But, as an exercise of this demo, we'll download it ourselves. So: | ||
[cldrjs](https://github.com/rxaviers/cldrjs). You are free to fetch it the way you want. But, as an | ||
exercise of this demo, we'll download it ourselves. So: | ||
1. Click at [Globalize releases tab](https://github.com/rxaviers/globalize/releases). | ||
1. Download the latest package. | ||
1. Unzip it. | ||
1. Rename the extracted directory `globalize` and move it alongside `index.html` and `README.md`. | ||
1. Click at [cldrjs releases tab](https://github.com/rxaviers/cldrjs/releases). | ||
1. Download the latest package. | ||
1. Unzip it. | ||
1. Create a `cldrjs` directory alongside `index.html` and `README.md` and move the cldrjs `dist/` files into it. | ||
1. Rename the extracted directory `cldrjs` and move it alongside `index.html` and `README.md`. | ||
@@ -33,8 +37,17 @@ Then, you'll get this: | ||
├── cldrjs | ||
│ ├── cldr.js | ||
│ ├── ... | ||
│ └── cldr | ||
│ ├── event.js | ||
│ ├── supplemental.js | ||
│ └── ... | ||
│ └── dist | ||
│ ├── cldr.js | ||
│ ├── ... | ||
│ └── cldr | ||
│ ├── event.js | ||
│ ├── supplemental.js | ||
│ └── ... | ||
├── globalize | ||
│ └── dist | ||
│ ├── globalize.js | ||
│ ├── ... | ||
│ └── globalize | ||
│ ├── currency.js | ||
│ ├── date.js | ||
│ └── ... | ||
├── index.html | ||
@@ -41,0 +54,0 @@ └── README.md |
{ | ||
"name": "globalize", | ||
"version": "1.1.0-rc.4", | ||
"version": "1.1.0-rc.5", | ||
"description": "A JavaScript library for internationalization and localization that leverage the official Unicode CLDR JSON data.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -579,3 +579,3 @@ # Globalize | ||
- **`.unitFormatter( unit, options )`** | ||
- **`.unitFormatter( unit [, options] )`** | ||
@@ -598,3 +598,3 @@ Returns a function that formats a unit according to the given unit, options, and the | ||
- **`.formatUnit( value, unit, options )`** | ||
- **`.formatUnit( value, unit [, options] )`** | ||
@@ -601,0 +601,0 @@ Alias for `.unitFormatter( unit, options )( value )`. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
380324
8507