mirror of https://github.com/abpframework/abp.git
2 changed files with 13 additions and 0 deletions
@ -0,0 +1 @@ |
|||
export * from './mock-localization.pipe'; |
|||
@ -0,0 +1,12 @@ |
|||
import { Config } from '@abp/ng.core'; |
|||
import { Injectable, Pipe, PipeTransform } from '@angular/core'; |
|||
|
|||
@Injectable() |
|||
@Pipe({ |
|||
name: 'abpLocalization', |
|||
}) |
|||
export class MockLocalizationPipe implements PipeTransform { |
|||
transform(value: string | Config.LocalizationWithDefault = '', ..._: string[]) { |
|||
return typeof value === 'string' ? value : value.defaultValue; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue