From febb69b05b97e99d321340d7521f9980c6f1902a Mon Sep 17 00:00:00 2001 From: christophercr Date: Mon, 11 Jun 2018 13:24:53 +0200 Subject: [PATCH] fix(stark-core): add missing barrel for common folder. Fix stark-core translations utils imports. --- packages/stark-core/src/common.ts | 1 + packages/stark-core/src/common/translations.ts | 2 ++ showcase/src/app/translation.config.ts | 3 +-- starter/src/app/translation.config.ts | 3 +-- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 packages/stark-core/src/common/translations.ts diff --git a/packages/stark-core/src/common.ts b/packages/stark-core/src/common.ts index 13f4bbe2c1..29ab023db4 100644 --- a/packages/stark-core/src/common.ts +++ b/packages/stark-core/src/common.ts @@ -1,3 +1,4 @@ export * from "./common/error"; export * from "./common/routes"; export * from "./common/store"; +export * from "./common/translations"; diff --git a/packages/stark-core/src/common/translations.ts b/packages/stark-core/src/common/translations.ts new file mode 100644 index 0000000000..6d7e74a9ea --- /dev/null +++ b/packages/stark-core/src/common/translations.ts @@ -0,0 +1,2 @@ +export * from "./translations/locale.intf"; +export * from "./translations/translations"; diff --git a/showcase/src/app/translation.config.ts b/showcase/src/app/translation.config.ts index 71966be047..2672e9f998 100644 --- a/showcase/src/app/translation.config.ts +++ b/showcase/src/app/translation.config.ts @@ -1,6 +1,5 @@ import { TranslateService } from "@ngx-translate/core"; -import { mergeTranslations } from "../../../packages/stark-core/src/common/translations/translations"; -import { StarkLocale } from "../../../packages/stark-core/src/common/translations/locale.intf"; +import { mergeTranslations, StarkLocale } from "@nationalbankbelgium/stark-core"; const translationsEn: object = require("../assets/translations/en.json"); const translationsFr: object = require("../assets/translations/fr.json"); diff --git a/starter/src/app/translation.config.ts b/starter/src/app/translation.config.ts index 71966be047..2672e9f998 100644 --- a/starter/src/app/translation.config.ts +++ b/starter/src/app/translation.config.ts @@ -1,6 +1,5 @@ import { TranslateService } from "@ngx-translate/core"; -import { mergeTranslations } from "../../../packages/stark-core/src/common/translations/translations"; -import { StarkLocale } from "../../../packages/stark-core/src/common/translations/locale.intf"; +import { mergeTranslations, StarkLocale } from "@nationalbankbelgium/stark-core"; const translationsEn: object = require("../assets/translations/en.json"); const translationsFr: object = require("../assets/translations/fr.json");