generated from thinkode/modelRepository
23 lines
411 B
JavaScript
23 lines
411 B
JavaScript
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.body,
|
|
});
|
|
|
|
export default app; |