From 3a4d45668282f34b028c3606d75004abfd6886e7 Mon Sep 17 00:00:00 2001 From: Richard Cox Date: Fri, 22 Mar 2019 10:22:42 +0000 Subject: [PATCH] Fix 'unknown locale' error message when viewing service plans To reproduce.. - View the service's service plan table using a cost with amount in EUR - Exception `Missing locale data for the locale "fr".` is thrown This didn't happen on the create service stepper due to the locale being registered there. Also didn't happen if visiting the service plan table after the stepper --- .../service-plans/service-plans-list-config.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/packages/core/src/shared/components/list/list-types/service-plans/service-plans-list-config.service.ts b/src/frontend/packages/core/src/shared/components/list/list-types/service-plans/service-plans-list-config.service.ts index c3a49993b4..053597c5b1 100644 --- a/src/frontend/packages/core/src/shared/components/list/list-types/service-plans/service-plans-list-config.service.ts +++ b/src/frontend/packages/core/src/shared/components/list/list-types/service-plans/service-plans-list-config.service.ts @@ -1,4 +1,5 @@ -import { DatePipe } from '@angular/common'; +import { DatePipe, registerLocaleData } from '@angular/common'; +import localeFr from '@angular/common/locales/fr'; import { Injectable } from '@angular/core'; import { Store } from '@ngrx/store'; @@ -24,8 +25,6 @@ import { /** - * Service instance list shown for `service / service instances` component - * * @export */ @Injectable() @@ -102,6 +101,7 @@ export class ServicePlansListConfigService implements IListConfig