diff --git a/mon-entreprise/package.json b/mon-entreprise/package.json index 8e37004c6..a7ccd8fe0 100644 --- a/mon-entreprise/package.json +++ b/mon-entreprise/package.json @@ -8,6 +8,7 @@ "url": "https://github.com/betagouv/mon-entreprise.git", "directory": "mon-entreprise" }, + "private": true, "engines": { "node": ">=12.16.1" }, diff --git a/publicodes/site/components/App.tsx b/publicodes/site/components/App.tsx index 851958c55..e125f9be8 100644 --- a/publicodes/site/components/App.tsx +++ b/publicodes/site/components/App.tsx @@ -1,15 +1,17 @@ -// TODO : load translation only if en +// TODO: This is need to display the documentation UI, because the translations +// for UI components are handled in the mon-entreprise site and not in the +// publicodes-react package. This should be fixed. +import '../../../mon-entreprise/source/locales/i18n' import 'Components/ui/index.css' -import 'iframe-resizer' import { useEffect } from 'react' import { hot } from 'react-hot-loader' import { Route, Switch } from 'react-router-dom' -import Provider from './Provider' import Communauté from '../pages/Communauté' import Documentation from '../pages/Documentation' -import { Header } from './Header' import Landing from '../pages/Landing' +import { Header } from './Header' import LazyStudio from './LazyStudio' +import Provider from './Provider' function Router() { return ( diff --git a/publicodes/site/package.json b/publicodes/site/package.json index c05baba1d..d10b0cb67 100644 --- a/publicodes/site/package.json +++ b/publicodes/site/package.json @@ -4,6 +4,7 @@ "description": "Site web de publicodes", "author": "", "license": "MIT", + "private": true, "scripts": { "prepare": "echo 1", "test": "echo 1"