META-INF.resources.bower_components.globalize.src.number.numbering-system-digits-map.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",
"../common/create-error/unsupported-feature"
], function (numberNumberingSystem, createErrorUnsupportedFeature) {
/**
* nuMap( cldr )
*
* @cldr [Cldr instance].
*
* Return digits map if numbering system is different than `latn`.
*/
return function (cldr) {
var aux,
nu = numberNumberingSystem(cldr);
if (nu === "latn") {
return;
}
aux = cldr.supplemental(["numberingSystems", nu]);
if (aux._type !== "numeric") {
throw createErrorUnsupportedFeature("`" + aux._type + "` numbering system");
}
return aux._digits;
};
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy