feat(i18n): provide LOCALE_ID and NgLocalization
This commit is contained in:

committed by
Vikram Subramanian

parent
4df48b202c
commit
ce4eae65a7
19
tools/public_api_guard/common/index.d.ts
vendored
19
tools/public_api_guard/common/index.d.ts
vendored
@ -36,9 +36,6 @@ export declare class DecimalPipe implements PipeTransform {
|
||||
transform(value: any, digits?: string): string;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare function getPluralCase(locale: string, nLike: number | string): Plural;
|
||||
|
||||
/** @stable */
|
||||
export declare class HashLocationStrategy extends LocationStrategy {
|
||||
constructor(_platformLocation: PlatformLocation, _baseHref?: string);
|
||||
@ -132,12 +129,6 @@ export declare class NgIf {
|
||||
constructor(_viewContainer: ViewContainerRef, _templateRef: TemplateRef<Object>);
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare class NgLocaleLocalization extends NgLocalization {
|
||||
constructor(_locale: string);
|
||||
getPluralCategory(value: any): string;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare abstract class NgLocalization {
|
||||
abstract getPluralCategory(value: any): string;
|
||||
@ -222,16 +213,6 @@ export declare abstract class PlatformLocation {
|
||||
abstract replaceState(state: any, title: string, url: string): void;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare enum Plural {
|
||||
Zero = 0,
|
||||
One = 1,
|
||||
Two = 2,
|
||||
Few = 3,
|
||||
Many = 4,
|
||||
Other = 5,
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class SlicePipe implements PipeTransform {
|
||||
transform(value: any, start: number, end?: number): any;
|
||||
|
Reference in New Issue
Block a user