META-INF.resources.bower_components.globalize.src.number.symbol.inverted-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
The newest version!
define([
"./name",
"../symbol"
], function (numberSymbolName, numberSymbol) {
/**
* symbolMap( cldr )
*
* @cldr [Cldr instance].
*
* Return the (localized symbol, pattern symbol) key value pair, eg. {
* "٫": ".",
* "٬": ",",
* "٪": "%",
* ...
* };
*/
return function (cldr) {
var symbol,
symbolMap = {};
for (symbol in numberSymbolName) {
symbolMap[numberSymbol(numberSymbolName[symbol], cldr)] = symbol;
}
return symbolMap;
};
});