All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.bower_components.globalize.src.currency.code-properties.js Maven / Gradle / Ivy

There is a newer version: 1.2.2.1-jre17
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy