Error: Missing locale data for the locale "pt-BR" ionic 3


#1

Error: Missing locale data for the locale “pt-BR” ionic 3

import { BrowserModule } from ‘@angular/platform-browser’;
import { ErrorHandler, NgModule, LOCALE_ID } from ‘@angular/core’;
import { IonicApp, IonicErrorHandler, IonicModule } from ‘ionic-angular’;

providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler},
{provide: LOCALE_ID, useValue: ‘pt-BR’},
]
not


#2

https://angular.io/guide/i18n#i18n-pipes


#3

I did that way:

import localePtBr from '@angular/common/locales/pt';

import { registerLocaleData } from '@angular/common';

registerLocaleData(localePtBr);

#4

leonardoss funcionou perfeitamente.


#5

Perfeito @rittmann abraço!