mirror of https://github.com/abpframework/abp.git
committed by
GitHub
7 changed files with 28 additions and 29 deletions
@ -1 +0,0 @@ |
|||
export * from './mock-localization.pipe'; |
|||
@ -1,12 +0,0 @@ |
|||
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