import { createIntlCache, createIntl } from 'react-intl';
import messagesData from '../../locales/data.json.esm.js';

const locale = navigator.language.split(/[-_]/)[0] || "en";
const cache = createIntlCache();
const intl = createIntl(
  {
    defaultLocale: "en",
    locale,
    // eslint-disable-next-line no-console
    onError: console.log,
    messages: messagesData.en
  },
  cache
);

export { intl as default };
//# sourceMappingURL=intl.esm.js.map
