Missing locale data for the locale "pt-BR".' for pipe 'DatePipe' code example
Example: 'Missing locale data for the locale "pt-BR".' for pipe 'DatePipe'
import { LOCALE_ID } from '@angular/core';
import { registerLocaleData } from '@angular/common';
import localePt from '@angular/common/locales/pt';
registerLocaleData(localePt);
@NgModule({
providers: [
{ provide: LOCALE_ID, useValue: 'pt-BR' }
]
})
export class AppModule { }