
import MainRouter from './router/Main'
import i18next from 'i18next'
import { I18nextProvider } from 'react-i18next'
import { BrowserRouter } from 'react-router-dom'
import 'swiper/swiper-bundle.css';
import FaJson from './langs/fa.json'
i18next.init({
  interpolation: { escapeValue: false },
  lng: 'fa',
  resources: {
    fa: {
      global: FaJson
    }
  }
})

function App() {

  return (
 <>
   <BrowserRouter>
      <I18nextProvider i18n={i18next}>
              <MainRouter />
      </I18nextProvider>
   </BrowserRouter>
 </>




  )
}
export default App
