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

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

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

    /**
     * properties( unit, form, cldr )
     *
     * @unit [String] The full type-unit name (eg. duration-second), or the short unit name
     * (eg. second).
     *
     * @form [String] A string describing the form of the unit representation (eg. long,
     * short, narrow).
     *
     * @cldr [Cldr instance].
     */
    return function (unit, form, cldr) {
        var compoundUnitPattern, unitProperties;

        compoundUnitPattern = cldr.main(["units", form, "per/compoundUnitPattern"]);
        unitProperties = unitGet(unit, form, cldr);

        return {
            compoundUnitPattern: compoundUnitPattern,
            unitProperties: unitProperties
        };
    };

});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy