META-INF.resources.bower_components.globalize.src.currency.code-properties.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-globalize Show documentation
Show all versions of jwebmp-globalize Show documentation
The JWebSwing implementation for a full Globalization
define([
"./supplemental-override",
"./unit-patterns",
"../number/pattern"
], function (currencySupplementalOverride, currencyUnitPatterns, numberPattern) {
/**
* codeProperties( currency, cldr )
*
* Return number pattern with the appropriate currency code in as literal.
*/
return function (currency, cldr) {
var pattern = numberPattern("decimal", cldr);
// The number of decimal places and the rounding for each currency is not locale-specific. Those
// values overridden by Supplemental Currency Data.
pattern = currencySupplementalOverride(currency, pattern, cldr);
return {
currency: currency,
pattern: pattern,
unitPatterns: currencyUnitPatterns(cldr)
};
};
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy