feat: restored the project

This commit is contained in:
2023-08-26 09:33:05 +00:00
parent 8fe9c0a4e8
commit d9a01d440b
19 changed files with 446 additions and 190 deletions

View File

@@ -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;