forked from DMXStage/dmxconnect
feat: restored the project
This commit is contained in:
@@ -1,8 +1,23 @@
|
||||
import './style.css'
|
||||
import App from './App.svelte'
|
||||
import App from './App.svelte';
|
||||
|
||||
// Load dictionaries
|
||||
import { addMessages, init } from 'svelte-i18n';
|
||||
|
||||
// Import dictionaries
|
||||
import en from './lang/en.json';
|
||||
|
||||
// Add dictionaries to svelte-i18n
|
||||
addMessages('en', en);
|
||||
|
||||
// Initialize svelte-i18n dictionaries
|
||||
init({
|
||||
fallbackLocale: 'en',
|
||||
initialLocale: 'en',
|
||||
});
|
||||
|
||||
// Create the main app
|
||||
const app = new App({
|
||||
target: document.getElementById('app')
|
||||
})
|
||||
target: document.body,
|
||||
});
|
||||
|
||||
export default app
|
||||
export default app;
|
||||
Reference in New Issue
Block a user