Answers for "'Missing locale data for the locale "pt-BR".' for pipe 'DatePipe'"

1

'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 { }
Posted by: Guest on January-06-2021

Code answers related to "'Missing locale data for the locale "pt-BR".' for pipe 'DatePipe'"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language