Expand my Community achievements bar.

How to read the key values of dicts map in i18n.js

Avatar

Former Community Member

In i18.js( /etc/clientlibs/granite/utils/source/I18n.js)

/**
         * The map where the dictionaries are stored under their locale.
         * @private
         * @type Object
         */
        var dicts = {},

 

Here the getDictionary() method is returning 

dicts[locale];

As per the documentation(comments) dicts looks like map.

I need to read the key values of map and group the key values and put filters on that key.

How can i read this map.Could you please suggest and please confirm whether this i18n.js is normal javascript or extended javascript.

0 Replies