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

META-INF.resources.bower_components.globalize.src.number.symbol.inverted-map.js Maven / Gradle / Ivy

There is a newer version: 0.66.0.1
Show 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;
    };

});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy