19 lines
426 B
TypeScript
19 lines
426 B
TypeScript
|
|
import { StrictMode } from "react"
|
||
|
|
import { createRoot } from "react-dom/client"
|
||
|
|
|
||
|
|
import App from "./App.tsx"
|
||
|
|
import "./index.css"
|
||
|
|
import { initializeDocsPreferences } from "./lib/preferences"
|
||
|
|
|
||
|
|
document.documentElement.lang = window.location.pathname.startsWith("/en-US")
|
||
|
|
? "en-US"
|
||
|
|
: "zh-Hans"
|
||
|
|
|
||
|
|
initializeDocsPreferences()
|
||
|
|
|
||
|
|
createRoot(document.getElementById("root")!).render(
|
||
|
|
<StrictMode>
|
||
|
|
<App />
|
||
|
|
</StrictMode>
|
||
|
|
)
|