src/network/error-parsing.js
function _treatEntityDetail(fieldErrors) {
    return Object.keys(fieldErrors || {}).reduce(
        (res, field) => {
            res[field] = translate(fieldErrors[field]);
            return res;
        }, {});
}
function _treatEntityDetail(fieldErrors) {
    return Object.keys(fieldErrors || {}).reduce(
        (res, field) => {
            res[field] = translate(fieldErrors[field]);
            return res;
        }, {});
}
function _treatEntityDetail ( fieldErrors ) { return Object . keys ( fieldErrors || { } ) . reduce ( ( res , field ) => { res [ field ] = translate ( fieldErrors [ field ] ) ; return res ; } , { } ) ; }
Treat an object of error by translating every error content.

@param {object} fieldErrors an object with key for fieldName, and values as error keys in i18n.
@returns {object} a new object, with translated error
Treat an object of error by translating every error content .