feat(common): export NgLocaleLocalization (#13367)

Closes #11921
This commit is contained in:
Dzmitry Shylovich
2016-12-12 22:16:12 +03:00
committed by Victor Berchet
parent 8a8c53250e
commit 56dce0e26d
3 changed files with 11 additions and 4 deletions

View File

@ -49,10 +49,10 @@ export function getPluralCategory(
*/
@Injectable()
export class NgLocaleLocalization extends NgLocalization {
constructor(@Inject(LOCALE_ID) private _locale: string) { super(); }
constructor(@Inject(LOCALE_ID) protected locale: string) { super(); }
getPluralCategory(value: any): string {
const plural = getPluralCase(this._locale, value);
const plural = getPluralCase(this.locale, value);
switch (plural) {
case Plural.Zero:
@ -431,4 +431,4 @@ export function getPluralCase(locale: string, nLike: number | string): Plural {
default:
return Plural.Other;
}
}
}