DodoTransfer/app/src/main.js
2026-11-05 10:28:10 +09:00

19 lines
470 B
JavaScript

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();