How can we manually register locale data in Angular?

By default, Angular only contains locale data for en-US which is English as spoken in the United States of America . But if the users want to set to another locale, then they must import locale data for that new locale. After that they can register using registerLocaleData method and the syntax of this method looks like below,

registerLocaleData(data: any, localeId?: any, extraData?: any): void