Skip to content

Commit

Permalink
docs(core): add migration notes for PluralRules
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko committed Mar 9, 2023
1 parent 4f0cc4d commit 8a64cf8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions website/docs/releases/migration-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,16 @@ Migration for the following older options:
- `fallbackLocale`

were deleted from the source code. This should affect only users who are migrating from `v2` to `v4` directly.

### Plural Rules works out of the box without manual configuration

You can safely remove `i18n.loadLocaleData` calls because since v4 Lingui uses `Intl.PluralRules` internally.

```diff
- import { en, cs } from "make-plural/plurals"

- i18n.loadLocaleData("en", { plurals: en })
- i18n.loadLocaleData("cs", { plurals: cs })
```

Don't forget to delete `make-plural` from your `package.json`.

0 comments on commit 8a64cf8

Please sign in to comment.