Files
dzone-front/src/App.tsx
T
2025-02-09 14:36:13 +03:30

35 lines
567 B
TypeScript

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