structure and home page and detail company
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user