forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

index.tsx13 lines, 528 bytesHistoryRawDownload
1/* @refresh reload */
2import { render } from "solid-js/web";
3import { App } from "@/app";
4import { loadLocale } from "@/i18n/messages";
5import { readLocale } from "@/stores/preferences-context";
6import "@/index.css";
7
8const root = document.getElementById("root");
9if (!root) throw new Error("Root element #root not found");
10
11// Only the boot language's dictionary is fetched, and the first render waits
12// for it so no frame ever shows raw message keys.
13void loadLocale(readLocale()).finally(() => render(() => <App />, root));