From af6716497248243f3f0e9548f19e3f8577649eb0 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Thu, 20 Dec 2018 11:16:31 +0100 Subject: [PATCH] ngx translate extract hotfix --- client/package.json | 1 - client/src/app/core/marked-translations.ts | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/package.json b/client/package.json index d1deb857e..fff75e3b2 100644 --- a/client/package.json +++ b/client/package.json @@ -49,7 +49,6 @@ "@angular/cli": "^7.1.0", "@angular/compiler-cli": "^7.1.1", "@angular/language-service": "^7.1.1", - "@biesbjerg/ngx-translate-extract": "^2.3.4", "@compodoc/compodoc": "^1.1.7", "@types/jasmine": "^2.8.12", "@types/jasminewd2": "^2.0.6", diff --git a/client/src/app/core/marked-translations.ts b/client/src/app/core/marked-translations.ts index 4aa0cc65e..3b0d9fc7d 100644 --- a/client/src/app/core/marked-translations.ts +++ b/client/src/app/core/marked-translations.ts @@ -1,4 +1,8 @@ -import { _ } from '@biesbjerg/ngx-translate-extract'; +// import { _ } from '@biesbjerg/ngx-translate-extract'; + +function _(key: string | string[]): string | string[] { + return key; +} /** * Add strings here that require translations but have never been declared