mon-entreprise/site/source/entry-fr.tsx

20 lines
469 B
TypeScript
Raw Normal View History

import { I18nProvider } from '@react-aria/i18n'
2018-07-12 08:09:41 +00:00
import { render } from 'react-dom'
import App from './App'
import i18next from './locales/i18n'
import './sentry'
export const AppFr = () => (
<I18nProvider locale="fr-FR">
2022-01-04 10:11:31 +00:00
<App basename="mon-entreprise" />
</I18nProvider>
)
if (!import.meta.env.SSR) {
2022-03-28 13:34:12 +00:00
i18next.changeLanguage('fr').catch((err) =>
// eslint-disable-next-line no-console
console.error(err)
)
render(<AppFr />, document.querySelector('#js'))
}