fix(i18n): Currency/Date/Number pipe use injected locale (#11093)

This commit is contained in:
Victor Berchet
2016-08-26 09:16:01 -07:00
committed by GitHub
parent 4d7d2a2daa
commit 0a053a4cd5
5 changed files with 27 additions and 16 deletions

View File

@ -14,16 +14,19 @@ export declare class CommonModule {
/** @stable */
export declare class CurrencyPipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, currencyCode?: string, symbolDisplay?: boolean, digits?: string): string;
}
/** @stable */
export declare class DatePipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, pattern?: string): string;
}
/** @stable */
export declare class DecimalPipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, digits?: string): string;
}
@ -196,6 +199,7 @@ export declare class PathLocationStrategy extends LocationStrategy {
/** @stable */
export declare class PercentPipe implements PipeTransform {
constructor(_locale: string);
transform(value: any, digits?: string): string;
}