forked from cms/tibi-svelte-starter
✨ feat: implement new feature for enhanced user experience
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import "./css/style.css"
|
||||
import App from "./App.svelte"
|
||||
import { hydrate } from "svelte"
|
||||
import { setupI18n } from "./lib/i18n/index"
|
||||
|
||||
let appContainer = document?.getElementById("appContainer")
|
||||
// Initialize i18n before mounting the app
|
||||
setupI18n().then(() => {
|
||||
let appContainer = document?.getElementById("appContainer")
|
||||
hydrate(App, { target: appContainer })
|
||||
})
|
||||
|
||||
const app = hydrate(App, { target: appContainer })
|
||||
|
||||
export default app
|
||||
|
||||
Reference in New Issue
Block a user