license import { Injectable , SkipSelf , Optional } from '@angular/core' ; import { Subject } from 'rxjs' ; /**
 * To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and
 * include it in a custom provider.
 */ @ Injectable ( { providedIn : 'root' } ) export class MatSortHeaderIntl { /**
     * Stream that emits whenever the labels here are changed. Use this to notify
     * components if the labels have changed after initialization.
     */ readonly changes : Subject < void > = new Subject < void > ( ) ; /** ARIA label for the sorting button. */ sortButtonLabel = ( id ) => { return `Change sorting for ${ id }` ; } ; } docs-private export function MAT_SORT_HEADER_INTL_PROVIDER_FACTORY ( parentIntl ) { return parentIntl || new MatSortHeaderIntl ( ) ; } docs-private export const MAT_SORT_HEADER_INTL_PROVIDER = { provide : MatSortHeaderIntl , deps : [ [ new Optional ( ) , new SkipSelf ( ) , MatSortHeaderIntl ] ] , useFactory : MAT_SORT_HEADER_INTL_PROVIDER_FACTORY } ;