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
{{ message }}
This repository was archived by the owner on Dec 31, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: gitbook/en/api.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,20 @@
38
38
39
39
Localize the locale message of `key` with pluralization. Localize in preferentially component locale messages than global locale messages. If not specified component locale messages, localize with global locale messages. If you specified `locale`, localize the locale messages of `locale`. If you will specify string value to `values`, localize the locale messages of value. If you will specify Array or Object value to `values`, you must specify with `values` of [$t](#t).
40
40
41
+
#### getChoiceIndex
42
+
43
+
-**Arguments:**
44
+
-`{number} choice`
45
+
-`{number} choicesLength`
46
+
47
+
-**Return:**`finalChoice {number}`
48
+
49
+
Get pluralization index for current pluralizing number and a given amount of choices. Can be overriden through prototype mutation:
0 commit comments