fix(common): remove deprecated support for intl API (#29250)
BREAKING CHANGE: In v5, we deprecated support for the intl API in order to improve the browser support. We are now removing these deprecated APIs for v9. See the original change here for more info on why: #18284. PR Close #29250
This commit is contained in:

committed by
Matias Niemelä

parent
5dfbcd5631
commit
9e7668f16b
28
tools/public_api_guard/common/common.d.ts
vendored
28
tools/public_api_guard/common/common.d.ts
vendored
@ -27,30 +27,6 @@ export declare class DecimalPipe implements PipeTransform {
|
||||
transform(value: any, digitsInfo?: string, locale?: string): string | null;
|
||||
}
|
||||
|
||||
export declare class DeprecatedCurrencyPipe implements PipeTransform {
|
||||
constructor(_locale: string);
|
||||
transform(value: any, currencyCode?: string, symbolDisplay?: boolean, digits?: string): string | null;
|
||||
}
|
||||
|
||||
export declare class DeprecatedDatePipe implements PipeTransform {
|
||||
constructor(_locale: string);
|
||||
transform(value: any, pattern?: string): string | null;
|
||||
}
|
||||
|
||||
export declare class DeprecatedDecimalPipe implements PipeTransform {
|
||||
constructor(_locale: string);
|
||||
transform(value: any, digits?: string): string | null;
|
||||
}
|
||||
|
||||
/** @deprecated */
|
||||
export declare class DeprecatedI18NPipesModule {
|
||||
}
|
||||
|
||||
export declare class DeprecatedPercentPipe implements PipeTransform {
|
||||
constructor(_locale: string);
|
||||
transform(value: any, digits?: string): string | null;
|
||||
}
|
||||
|
||||
export declare const DOCUMENT: InjectionToken<Document>;
|
||||
|
||||
export declare function formatCurrency(value: number, locale: string, currency: string, currencyCode?: string, digitsInfo?: string): string;
|
||||
@ -273,10 +249,8 @@ export declare class NgIfContext {
|
||||
}
|
||||
|
||||
export declare class NgLocaleLocalization extends NgLocalization {
|
||||
/** @deprecated */ protected deprecatedPluralFn?: ((locale: string, value: string | number) => Plural) | null | undefined;
|
||||
protected locale: string;
|
||||
constructor(locale: string,
|
||||
/** @deprecated */ deprecatedPluralFn?: ((locale: string, value: string | number) => Plural) | null | undefined);
|
||||
constructor(locale: string);
|
||||
getPluralCategory(value: any, locale?: string): string;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user