utils/i18n.js
function getScopeValue(scope, field) {
        if (!scope || !field) { return null; }

        var fieldParts = field.split('.');
        var pntr = scope;

        _.each(fieldParts, function (fieldPart) {
            if (pntr) {
                pntr = pntr[fieldPart];
            }
        });

        return pntr;
    }
function getScopeValue(scope, field) {
        if (!scope || !field) { return null; }

        var fieldParts = field.split('.');
        var pntr = scope;

        _.each(fieldParts, function (fieldPart) {
            if (pntr) {
                pntr = pntr[fieldPart];
            }
        });

        return pntr;
    }
function getScopeValue ( scope , field ) { if ( ! scope || ! field ) { return null ; } var fieldParts = field . split ( '.' ) ; var pntr = scope ; _ . each ( fieldParts , function ( fieldPart ) { if ( pntr ) { pntr = pntr [ fieldPart ] ; } } ) ; return pntr ; }
Get a value from scope for a given field
@param scope
@param field
@returns {{}}
Get a value from scope for a given field