palmpay.mx-website/src/index.js

36 lines
930 B
JavaScript
Raw Normal View History

2018-09-22 18:23:51 +00:00
import React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter } from 'react-router-dom';
import { IntlProvider } from "react-intl";
// Main app component
import App from "./components/App";
// Import all css needed for the app at once
import "font-awesome/css/font-awesome.min.css";
import "bootstrap/dist/css/bootstrap.min.css";
import "mdbreact/dist/css/mdb.css";
import "./assets/css/palmpay.css";
import "./index.css";
import messages_en from "./translations/en.json";
import messages_es from "./translations/es.json";
const messages = {
'en': messages_en,
'es': messages_es
};
const language = 'en';
// Add IntlProvider to make the internationalization functions visible in all
// our components.
ReactDOM.render(
<IntlProvider locale={language} messages={messages[language]}>
<BrowserRouter>
<App/>
</BrowserRouter>
</IntlProvider>,
document.getElementById("root")
);