import { createApp } from 'vue'; import { createPinia } from 'pinia'; import './styles.css'; import App from './App.vue'; import { setLang } from './lib/i18n.js'; import { getJSON } from './lib/api.js'; async function start() { // the translations decide the texts of everything, load them first try { setLang(await getJSON('lang.json', { auth: false })); } catch (e) { console.error(e); } createApp(App).use(createPinia()).mount('#app'); } start();