META-INF.resources.bower_components.globalize.src.number.pattern.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([
"./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"
]);
};
});