You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/api/filters.md
+24-20Lines changed: 24 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -27,24 +27,28 @@ You can pass an optional argument which will be used as the currency symbol (def
27
27
28
28
- this filter takes at least one argument
29
29
30
-
*1 => '1 item'*
31
-
*2 => '2 items'*
32
-
33
-
When there is exactly one arg, plural forms simply add an "s" at the end. When there are more than one argument, the arguments will be used as array of strings corresponding to the single, double, triple ... forms of the word to be pluralized. When the number to be pluralized exceeds the length of the args, it will use the last entry in the array.
30
+
Pluralizes the argument based on the filtered value. When there is exactly one arg, plural forms simply add an "s" at the end. When there are more than one argument, the arguments will be used as array of strings corresponding to the single, double, triple ... forms of the word to be pluralized. When the number to be pluralized exceeds the length of the args, it will use the last entry in the array.
34
31
35
32
**Example:**
36
33
37
34
```html
38
-
<spanv-text="date | pluralize st nd rd th"></span>
0 commit comments