Skip to content

Commit

Permalink
feat(module:i18n): support standalone component (#8249)
Browse files Browse the repository at this point in the history
  • Loading branch information
ParsaArvanehPA authored Dec 4, 2023
1 parent ff14ed0 commit a91cac7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/i18n/nz-i18n.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
3 changes: 2 additions & 1 deletion components/i18n/nz-i18n.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down

0 comments on commit a91cac7

Please sign in to comment.