hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | /* @refresh reload */ |
| 2 | import { render } from "solid-js/web"; |
| 3 | import { App } from "@/app"; |
| 4 | import { loadLocale } from "@/i18n/messages"; |
| 5 | import { readLocale } from "@/stores/preferences-context"; |
| 6 | import "@/index.css"; |
| 7 | |
| 8 | const root = document.getElementById("root"); |
| 9 | if (!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. |
| 13 | void loadLocale(readLocale()).finally(() => render(() => <App />, root)); |