From a91cac7e1bbd4379b9498d705a9b6fa1a00e4cd8 Mon Sep 17 00:00:00 2001 From: Parsa Arvaneh <62149413+ParsaArvanehPA@users.noreply.github.com> Date: Mon, 4 Dec 2023 20:05:08 +0330 Subject: [PATCH] feat(module:i18n): support standalone component (#8249) --- components/i18n/nz-i18n.module.ts | 2 +- components/i18n/nz-i18n.pipe.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/i18n/nz-i18n.module.ts b/components/i18n/nz-i18n.module.ts index 497cb9e074..6e1e88f6a1 100644 --- a/components/i18n/nz-i18n.module.ts +++ b/components/i18n/nz-i18n.module.ts @@ -8,7 +8,7 @@ import { NgModule } from '@angular/core'; import { NzI18nPipe } from './nz-i18n.pipe'; @NgModule({ - declarations: [NzI18nPipe], + imports: [NzI18nPipe], exports: [NzI18nPipe] }) export class NzI18nModule {} diff --git a/components/i18n/nz-i18n.pipe.ts b/components/i18n/nz-i18n.pipe.ts index c17fa8f6ff..2d4d6cdaf0 100644 --- a/components/i18n/nz-i18n.pipe.ts +++ b/components/i18n/nz-i18n.pipe.ts @@ -8,7 +8,8 @@ import { Pipe, PipeTransform } from '@angular/core'; import { NzI18nService } from './nz-i18n.service'; @Pipe({ - name: 'nzI18n' + name: 'nzI18n', + standalone: true }) export class NzI18nPipe implements PipeTransform { constructor(private _locale: NzI18nService) {}