export class CoreNotificationsMessages { static readonly DELETE_SINGLE_INSTANCE_MSG = "CORE_DELETE_SINGLE_INSTANCE_MSG"; static readonly DELETE_MULTIPLE_INSTANCES_MSG: string = "CORE_DELETE_MULTIPLE_INSTANCES_MSG"; static readonly CLOSE_Update_SINGLE_INSTANCE_MSG: string = "CORE_CLOSE_Update_SINGLE_INSTANCE_MSG"; static readonly SUCCESS_UPDATE_MSG = "CORE_SUCCESS_UPDATE_MSG"; static readonly SINGLE_INSTANCE_SUCCESS_ACTIVATE_MSG = "CORE_SINGLE_INSTANCE_SUCCESS_ACTIVATE_MSG"; static readonly MULTIPLE_INSTANCES_SUCCESS_ACTIVATE_MSG = "CORE_MULTIPLE_INSTANCES_SUCCESS_ACTIVATE_MSG"; static readonly SINGLE_INSTANCE_SUCCESS_DEACTIVATE_MSG = "CORE_SINGLE_INSTANCE_SUCCESS_DEACTIVATE_MSG"; static readonly MULTIPLE_INSTANCES_SUCCESS_DEACTIVATE_MSG = "CORE_MULTIPLE_INSTANCES_SUCCESS_DEACTIVATE_MSG"; static readonly ERROR_NOT_EDITABLE_RECORD_MSG = "CORE_ERROR_NOT_EDITABLE_RECORD_MSG"; static formatMsg(targetMessage, ...replacements: string[]) { return targetMessage.replace(/{(\d+)}/g, function (match, number) { return typeof replacements[number] != 'undefined' ? replacements[number] : match ; }); } }