Skip to content

Commit fcde2b1

Browse files
committed
Use DsfrLangProvider
1 parent 1f5e6d4 commit fcde2b1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"./Quote": "./dist/Quote.js",
139139
"./Notice": "./dist/Notice.js",
140140
"./Highlight": "./dist/Highlight.js",
141-
"./Header": "./dist/Header/Header.js",
141+
"./Header": "./dist/Header/index.js",
142142
"./Footer": "./dist/Footer.js",
143143
"./Display": "./dist/Display.js",
144144
"./Card": "./dist/Card.js",

test/integration/next-appdir/app/layout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { Header } from "@codegouvfr/react-dsfr/Header";
99
import { Footer } from "@codegouvfr/react-dsfr/Footer";
1010
import { Display, headerFooterDisplayItem } from "@codegouvfr/react-dsfr/Display";
1111
import { fr } from "@codegouvfr/react-dsfr";
12+
import { DsfrLangProvider } from "@codegouvfr/react-dsfr/i18n";
1213

1314
const brandTop = <>INTITULE<br />OFFICIEL</>;
1415

@@ -38,6 +39,7 @@ export default function RootLayout({ children }: { children: JSX.Element; }) {
3839
</head>
3940
<body>
4041
<DsfrProvider defaultColorScheme={defaultColorScheme}>
42+
<DsfrLangProvider lang="fr">
4143
<NextAppDirEmotionCacheProvider options={{ "key": "css" }}>
4244
<MuiDsfrThemeProvider>
4345

@@ -73,6 +75,7 @@ export default function RootLayout({ children }: { children: JSX.Element; }) {
7375

7476
</MuiDsfrThemeProvider>
7577
</NextAppDirEmotionCacheProvider>
78+
</DsfrLangProvider>
7679
</DsfrProvider>
7780
</body>
7881
</html>

0 commit comments

Comments
 (0)