From 50bda10045426bf815ce7ef4890eebce6538d58f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Str=C3=B8msholm?= <141043748+FredrikStroms@users.noreply.github.com> Date: Mon, 20 Jan 2025 09:41:54 +0100 Subject: [PATCH] fix: added standalone false to angular components/pipes (#3421) To make tolgee compatible with angular v19 --- packages/ngx/projects/ngx-tolgee/src/lib/loader.component.ts | 1 + packages/ngx/projects/ngx-tolgee/src/lib/t.component.ts | 1 + packages/ngx/projects/ngx-tolgee/src/lib/translate.pipe.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/ngx/projects/ngx-tolgee/src/lib/loader.component.ts b/packages/ngx/projects/ngx-tolgee/src/lib/loader.component.ts index b51e37c3bb..ddcff70035 100644 --- a/packages/ngx/projects/ngx-tolgee/src/lib/loader.component.ts +++ b/packages/ngx/projects/ngx-tolgee/src/lib/loader.component.ts @@ -4,6 +4,7 @@ import { Component, Input } from '@angular/core'; template: `
`, + standalone: false, }) export class LoaderComponent { @Input() html: string | undefined; diff --git a/packages/ngx/projects/ngx-tolgee/src/lib/t.component.ts b/packages/ngx/projects/ngx-tolgee/src/lib/t.component.ts index 19821d18c6..772e16b065 100644 --- a/packages/ngx/projects/ngx-tolgee/src/lib/t.component.ts +++ b/packages/ngx/projects/ngx-tolgee/src/lib/t.component.ts @@ -13,6 +13,7 @@ import { TranslateParams, TranslationKey } from '@tolgee/web'; @Component({ selector: '[t]', template: ``, + standalone: false }) export class TComponent implements OnInit, OnDestroy, OnChanges { @Input() key: TranslationKey; diff --git a/packages/ngx/projects/ngx-tolgee/src/lib/translate.pipe.ts b/packages/ngx/projects/ngx-tolgee/src/lib/translate.pipe.ts index 85c8c66cfc..26d9a6d38a 100755 --- a/packages/ngx/projects/ngx-tolgee/src/lib/translate.pipe.ts +++ b/packages/ngx/projects/ngx-tolgee/src/lib/translate.pipe.ts @@ -16,6 +16,7 @@ import { @Pipe({ name: 'translate', pure: false, + standalone: false, }) export class TranslatePipe implements PipeTransform, OnDestroy { private value = '';