code: function _treatEntityDetail(fieldErrors) {
      return Object.keys(fieldErrors || {}).reduce(
          (res, field) => {
              res[field] = translate(fieldErrors[field]);
              return res;
          }, {});
  }
docs: 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