diff --git a/client/locales.md b/client/locales.md index 2b1ea805..4af3a6d1 100644 --- a/client/locales.md +++ b/client/locales.md @@ -26,3 +26,4 @@ | /components/websites | OK | FRED | FR,EN | | /components/wiki | OK | FRED | FR,EN | | /components/share | OK | FRED | FR,EN | +| /layout/* | OK | FRED | FR,EN | diff --git a/client/src/components/footer/index.tsx b/client/src/components/footer/index.tsx index c5071117..02f2cbce 100644 --- a/client/src/components/footer/index.tsx +++ b/client/src/components/footer/index.tsx @@ -1,8 +1,6 @@ import React from "react"; -import cn from "classnames"; -import { Col, Container, Link, Logo, Row, Title } from "@dataesr/dsfr-plus"; -import { IntlProvider, createIntl } from "react-intl"; -import styles from "./styles.module.scss"; +import { Container, Link, Logo } from "@dataesr/dsfr-plus"; +import { IntlProvider } from "react-intl"; const modules = import.meta.glob("./locales/*.json", { eager: true, @@ -16,8 +14,9 @@ const messages = Object.keys(modules).reduce((acc, key) => { return acc; }, {}); -const locale = "fr"; -const intl = createIntl({ locale, messages: messages[locale] }); +export function FooterTop({ children }: { children?: React.ReactNode }) { + return
{children}
; +} export function Footer({ children, @@ -26,203 +25,9 @@ export function Footer({ children?: React.ReactNode; fluid?: boolean; }) { - const version = import.meta.env?.VITE_VERSION; return ( @@ -238,7 +43,7 @@ export function FooterBottom({ }) { const childs = React.Children.toArray(children); return ( -
+