We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bc4b44 commit 0588173Copy full SHA for 0588173
guide/selectors.md
@@ -39,4 +39,17 @@ your-score =
39
}
40
```
41
42
+Using formatting options also allows for selectors using ordinal rather than
43
+cardinal plurals:
44
+
45
+```
46
+your-rank = { NUMBER($pos, type: "ordinal") ->
47
+ [1] You finished first!
48
+ [one] You finished {$pos}st
49
+ [two] You finished {$pos}nd
50
+ [few] You finished {$pos}rd
51
+ *[other] You finished {$pos}th
52
+}
53
54
55
[CLDR plural category]: http://www.unicode.org/cldr/charts/30/supplemental/language_plural_rules.html
0 commit comments