📅  最后修改于: 2022-03-11 14:48:36.696000             🧑  作者: Mango
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 { }