3

I am trying to use locale ID "no-no" while serving building my app as following:

ng serve --aot --locale no-no

But it reports error as following:

Unable to load the locale data file "@angular/common/locales/no-no", please check that "no-no" is a valid locale id.

I explored about it and came to know about some breaking changes in Angular: https://github.com/angular/angular/issues/20340

After this I tried to setup custom locale as directed here in app.module.ts

import { registerLocaleData } from '@angular/common';
import localeNB from '@angular/common/locales/nb';
registerLocaleData(localeNB, 'no-no');

Still facing the same problem!! Please let me know if there is any way to setup any custom locale ID.

Rahul Bhooteshwar
  • 1,675
  • 17
  • 31

0 Answers0