import * as React from "react" ; import * as ReactDOM from "react-dom" ; import { IntlProvider } from "react-intl" ; import App from "./App" ; import "./index.css" ; const messageEn = require ( "./translations/en.json" ) ; const locale = "en" ; const message = { en : messageEn , } ; ReactDOM . render ( < IntlProvider locale = { locale } messages = { message [ locale ] } > < App /> < /IntlProvider>, document.getElementById("root"));