Sunshine/src_assets/common/assets/web/init.js
Vithorio Polten 4b6ff3797e
refactor(ui): break down config.html into smaller pieces (#2491)
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
2024-05-13 13:08:13 -04:00

14 lines
301 B
JavaScript

import i18n from './locale'
export function initApp(app, config) {
//Wait for locale initialization, then render
i18n().then(i18n => {
app.use(i18n);
app.provide('i18n', i18n.global)
app.mount('#app');
if (config) {
config(app)
}
});
}