function createValidationErrorMessages(base, subjDef) {

	if (!subjDef.validationErrorMessages &&
		(base !== standard.VALIDATION_ERROR_MESSAGES))
		return base;

	const validationErrorMessages = Object.create(base);
	for (let messageId in subjDef.validationErrorMessages) {
		const messageDef = subjDef.validationErrorMessages[messageId];
		const existingMessageDef = validationErrorMessages[messageId];
		let newMessageDef;
		if (existingMessageDef &&
			(typeof existingMessageDef) === 'object' &&
			(typeof messageDef) === 'object') {
			newMessageDef = Object.create(existingMessageDef);
			for (let lang in messageDef)
				newMessageDef[lang] = messageDef[lang];
		} else {
			newMessageDef = messageDef;
		}
		validationErrorMessages[messageId] = newMessageDef;
	}

	return validationErrorMessages;
}
/**
 * Create validation error messages set for the specified container or property.
 *
 * @private
 * @param {Object.<string,Object<string,string>>} base Base validation error
 * messages set from the context.
 * @param {Object} subjDef Subject definition object possibly containing a
 * <code>validationErrorMessages</code> attribute.
 * @returns {Object.<string,Object<string,string>>} Validation error messages set
 * to use for the subject.
 */
Create validation error messages set for the specified container or property.
@private
@param {Object.>} base Base validation error
messages set from the context.
@param {Object} subjDef Subject definition object possibly containing a
validationErrorMessages attribute.
@returns {Object.>} Validation error messages set
to use for the subject.
Create validation error messages set for the specified container or property . @private @param { Object . > } base Base validation error messages set from the context . @param { Object } subjDef Subject definition object possibly containing a validationErrorMessages attribute . @returns { Object . > } Validation error messages set to use for the subject .
function createValidationErrorMessages(base, subjDef) {
	if (!subjDef.validationErrorMessages &&
		(base !== standard.VALIDATION_ERROR_MESSAGES))
		return base;
	const validationErrorMessages = Object.create(base);
	for (let messageId in subjDef.validationErrorMessages) {
		const messageDef = subjDef.validationErrorMessages[messageId];
		const existingMessageDef = validationErrorMessages[messageId];
		let newMessageDef;
		if (existingMessageDef &&
			(typeof existingMessageDef) === 'object' &&
			(typeof messageDef) === 'object') {
			newMessageDef = Object.create(existingMessageDef);
			for (let lang in messageDef)
				newMessageDef[lang] = messageDef[lang];
		} else {
			newMessageDef = messageDef;
		}
		validationErrorMessages[messageId] = newMessageDef;
	}
	return validationErrorMessages;
}
function createValidationErrorMessages ( base , subjDef ) { if ( ! subjDef . validationErrorMessages && ( base !== standard . VALIDATION_ERROR_MESSAGES ) ) return base ; const validationErrorMessages = Object . create ( base ) ; for ( let messageId in subjDef . validationErrorMessages ) { const messageDef = subjDef . validationErrorMessages [ messageId ] ; const existingMessageDef = validationErrorMessages [ messageId ] ; let newMessageDef ; if ( existingMessageDef && ( typeof existingMessageDef ) === 'object' && ( typeof messageDef ) === 'object' ) { newMessageDef = Object . create ( existingMessageDef ) ; for ( let lang in messageDef ) newMessageDef [ lang ] = messageDef [ lang ] ; } else { newMessageDef = messageDef ; } validationErrorMessages [ messageId ] = newMessageDef ; } return validationErrorMessages ; }
Create validation error messages set for the specified container or property.
Create validation error messages set for the specified container or property .