I am updating to Angular 13 and I am seeing errors surrounding this import:
import(`@angular/common/locales/${lang.split('-')[0]}.js`).then(locale => {
registerLocaleData(locale.default); });
What should I be using?
Recently, I have migrated to Angular 13. I also faced the same issue. The changes below worked for me.
import(`@/../@angular/common/locales/${lang}.mjs`)
.then(localModule => {
registerLocaleData(localModule.default)
});