META-INF.resources.bower_components.globalize.src.unit.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([
"./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