11import type { ReactNode } from "react" ;
2- import { start } from "../start" ;
3- import type { RegisterLink , RegisteredLinkProps } from "../link" ;
4- import { setLink } from "../link" ;
5- import { setUseLang } from "../i18n" ;
6- import { type DefaultColorScheme , setDefaultColorSchemeClientSide } from "./zz_internal/defaultColorScheme" ;
7- import { isBrowser } from "../tools/isBrowser" ;
8-
9- export type { RegisterLink , RegisteredLinkProps } ;
2+ import { start } from "../../start" ;
3+ import type { RegisteredLinkProps } from "../../link" ;
4+ import { setLink } from "../../link" ;
5+ import { type DefaultColorScheme , setDefaultColorSchemeClientSide } from "./defaultColorScheme" ;
6+ import { isBrowser } from "../../tools/isBrowser" ;
107
118let isAfterFirstEffect = false ;
129const actions : ( ( ) => void ) [ ] = [ ] ;
@@ -17,21 +14,15 @@ export function startReactDsfr(params: {
1714 verbose ?: boolean ;
1815 /** Default: <a /> */
1916 Link ?: ( props : RegisteredLinkProps & { children : ReactNode } ) => ReturnType < React . FC > ;
20- /** Default: ()=> "fr" */
21- useLang ?: ( ) => string ;
2217} ) {
23- const { defaultColorScheme, verbose = false , Link, useLang } = params ;
18+ const { defaultColorScheme, verbose = false , Link } = params ;
2419
2520 setDefaultColorSchemeClientSide ( { defaultColorScheme } ) ;
2621
2722 if ( Link !== undefined ) {
2823 setLink ( { Link } ) ;
2924 }
3025
31- if ( useLang !== undefined ) {
32- setUseLang ( { useLang } ) ;
33- }
34-
3526 if ( isBrowser ) {
3627 start ( {
3728 defaultColorScheme,
0 commit comments