mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-12-28 18:16:43 +00:00
19 lines
547 B
JavaScript
19 lines
547 B
JavaScript
import i18n from './locale'
|
|
|
|
// must import even if not implicitly using here
|
|
// https://github.com/aurelia/skeleton-navigation/issues/894
|
|
// https://discourse.aurelia.io/t/bootstrap-import-bootstrap-breaks-dropdown-menu-in-navbar/641/9
|
|
import 'bootstrap/dist/js/bootstrap'
|
|
|
|
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)
|
|
}
|
|
});
|
|
}
|