Skip to content

Commit 1643be4

Browse files
authored
Add information about the pluralization option for the Composition API (#1129)
* Add information about the pluralization option for the Composition API * Add empty line * Add break line for 'or'
1 parent 7a04694 commit 1643be4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/guide/essentials/pluralization.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,13 @@ function customRule(choice, choicesLength, orgRule) {
141141
}
142142
```
143143

144-
To use the custom rules defined above, you need to set the `pluralizationRules` option of `createI18n` to a key like the following locale:
144+
To use the custom rules defined above, inside of `createI18n` set either:
145+
146+
1. `pluralizationRules` (for Options API)
147+
*or*
148+
2. `pluralRules` (for Composition API)
149+
150+
like the the following locale:
145151

146152
```js
147153
const i18n = createI18n({

0 commit comments

Comments
 (0)