1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. All Rights Reserved.
|
4
|
*
|
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
* found in the LICENSE file at https://angular.io/license
|
7
|
*/
|
8
|
import { PipeTransform } from '@angular/core';
|
9
|
import { NgLocalization } from '../localization';
|
10
|
/**
|
11
|
* @ngModule CommonModule
|
12
|
* @whatItDoes Maps a value to a string that pluralizes the value according to locale rules.
|
13
|
* @howToUse `expression | i18nPlural:mapping`
|
14
|
* @description
|
15
|
*
|
16
|
* Where:
|
17
|
* - `expression` is a number.
|
18
|
* - `mapping` is an object that mimics the ICU format, see
|
19
|
* http://userguide.icu-project.org/formatparse/messages
|
20
|
*
|
21
|
* ## Example
|
22
|
*
|
23
|
* {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}
|
24
|
*
|
25
|
* @experimental
|
26
|
*/
|
27
|
export declare class I18nPluralPipe implements PipeTransform {
|
28
|
private _localization;
|
29
|
constructor(_localization: NgLocalization);
|
30
|
transform(value: number, pluralMap: {
|
31
|
[count: string]: string;
|
32
|
}): string;
|
33
|
}
|