0

As topic says, plurals does not seem to work. In previous 2.9.0 we used to have addLocaleData which was imported from react-intl/locale-data/en <--- (language version here) but in the new one it supposed to be integrated in react-intl. For older browsers they suggest polyfill.

Ive tried importing:

import'@formatjs/intl-pluralrules/polyfill';
import'@formatjs/intl-pluralrules/locale-data/no';
import'@formatjs/intl-pluralrules/locale-data/en';

But it does not work. Even after installing the "@formatjs/intl-pluralrules": "^5.1.4" package.

Previously you had to import the language and add it to

addLocaleData([
  ...noLocaleData,
  ...enLocaleData,
]);

But as addLocaleData does not exist anymore, im kinda clueless what to to here.

stAMy
  • 471
  • 2
  • 6
  • 14

0 Answers0