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

META-INF.resources.bower_components.globalize.src.number.pattern.js Maven / Gradle / Ivy

There is a newer version: 1.2.2.1-jre17
Show newest version
define([
    "./numbering-system"
], function (numberNumberingSystem) {

    /**
     * Pattern( style )
     *
     * @style [String] "decimal" (default) or "percent".
     *
     * @cldr [Cldr instance].
     */
    return function (style, cldr) {
        if (style !== "decimal" && style !== "percent") {
            throw new Error("Invalid style");
        }

        return cldr.main([
            "numbers",
            style + "Formats-numberSystem-" + numberNumberingSystem(cldr),
            "standard"
        ]);
    };

});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy