I've checked this source https://formatjs.io/docs/react-intl#runtime-requirements , and tried to add this code
import { NumberFormat } from '@formatjs/intl-numberformat'
NumberFormat.__addLocaleData(
require('@formatjs/intl-numberformat/dist/locale-data/en.json') // locale-data for en
)
NumberFormat.__addLocaleData(
require('@formatjs/intl-numberformat/dist/locale-data/th.json') // locale-data for th
)
But it doesn't help, also I've added defaultLocale
param :
<IntlProvider defaultLocale={locale}></IntlProvider>
to intl provider , but it also doesn't help. I have 2 languages , for en
language I don't get this error , only for th
language , what should I do ?