tools/gulp-tasks/cldr/extract.js
function getNumberSettings(localeData) {
  const decimalFormat = localeData.main('numbers/decimalFormats-numberSystem-latn/standard');
  const percentFormat = localeData.main('numbers/percentFormats-numberSystem-latn/standard');
  const scientificFormat = localeData.main('numbers/scientificFormats-numberSystem-latn/standard');
  const currencyFormat = localeData.main('numbers/currencyFormats-numberSystem-latn/standard');
  const symbols = localeData.main('numbers/symbols-numberSystem-latn');
  const symbolValues = [
    symbols.decimal,
    symbols.group,
    symbols.list,
    symbols.percentSign,
    symbols.plusSign,
    symbols.minusSign,
    symbols.exponential,
    symbols.superscriptingExponent,
    symbols.perMille,
    symbols.infinity,
    symbols.nan,
    symbols.timeSeparator,
  ];

  if (symbols.currencyDecimal || symbols.currencyGroup) {
    symbolValues.push(symbols.currencyDecimal);
  }

  if (symbols.currencyGroup) {
    symbolValues.push(symbols.currencyGroup);
  }

  return [
    symbolValues,
    [decimalFormat, percentFormat, currencyFormat, scientificFormat]
  ];
}
function getNumberSettings(localeData) {
  const decimalFormat = localeData.main('numbers/decimalFormats-numberSystem-latn/standard');
  const percentFormat = localeData.main('numbers/percentFormats-numberSystem-latn/standard');
  const scientificFormat = localeData.main('numbers/scientificFormats-numberSystem-latn/standard');
  const currencyFormat = localeData.main('numbers/currencyFormats-numberSystem-latn/standard');
  const symbols = localeData.main('numbers/symbols-numberSystem-latn');
  const symbolValues = [
    symbols.decimal,
    symbols.group,
    symbols.list,
    symbols.percentSign,
    symbols.plusSign,
    symbols.minusSign,
    symbols.exponential,
    symbols.superscriptingExponent,
    symbols.perMille,
    symbols.infinity,
    symbols.nan,
    symbols.timeSeparator,
  ];

  if (symbols.currencyDecimal || symbols.currencyGroup) {
    symbolValues.push(symbols.currencyDecimal);
  }

  if (symbols.currencyGroup) {
    symbolValues.push(symbols.currencyGroup);
  }

  return [
    symbolValues,
    [decimalFormat, percentFormat, currencyFormat, scientificFormat]
  ];
}
function getNumberSettings ( localeData ) { const decimalFormat = localeData . main ( 'numbers/decimalFormats-numberSystem-latn/standard' ) ; const percentFormat = localeData . main ( 'numbers/percentFormats-numberSystem-latn/standard' ) ; const scientificFormat = localeData . main ( 'numbers/scientificFormats-numberSystem-latn/standard' ) ; const currencyFormat = localeData . main ( 'numbers/currencyFormats-numberSystem-latn/standard' ) ; const symbols = localeData . main ( 'numbers/symbols-numberSystem-latn' ) ; const symbolValues = [ symbols . decimal , symbols . group , symbols . list , symbols . percentSign , symbols . plusSign , symbols . minusSign , symbols . exponential , symbols . superscriptingExponent , symbols . perMille , symbols . infinity , symbols . nan , symbols . timeSeparator , ] ; if ( symbols . currencyDecimal || symbols . currencyGroup ) { symbolValues . push ( symbols . currencyDecimal ) ; } if ( symbols . currencyGroup ) { symbolValues . push ( symbols . currencyGroup ) ; } return [ symbolValues , [ decimalFormat , percentFormat , currencyFormat , scientificFormat ] ] ; }
Returns the number symbols and formats for a locale
@returns [ symbols, formats ]
symbols: [ decimal, group, list, percentSign, plusSign, minusSign, exponential, superscriptingExponent, perMille, infinity, nan, timeSeparator, currencyDecimal?, currencyGroup? ]
formats: [ currency, decimal, percent, scientific ]
Returns the number symbols and formats for a locale