src/js/common/i18n.js
function flattenMessageMap(data) {
    var obj = {};
    var newKey;

    _.each(data, function(groupMessages, key) {
        _.each(groupMessages, function(message, subKey) {
            newKey = [key, subKey].join('.');
            obj[newKey] = message;
        });
    }, this);

    return obj;
}
function flattenMessageMap(data) {
    var obj = {};
    var newKey;

    _.each(data, function(groupMessages, key) {
        _.each(groupMessages, function(message, subKey) {
            newKey = [key, subKey].join('.');
            obj[newKey] = message;
        });
    }, this);

    return obj;
}
function flattenMessageMap ( data ) { var obj = { } ; var newKey ; _ . each ( data , function ( groupMessages , key ) { _ . each ( groupMessages , function ( message , subKey ) { newKey = [ key , subKey ] . join ( '.' ) ; obj [ newKey ] = message ; } ) ; } , this ) ; return obj ; }
Flatten message map
@param {object} data - Messages
@returns {object} Flatten message object (key foramt is 'key.subKey')
@ignore
Flatten message map