mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-17 01:14:01 +00:00
14 lines
301 B
JavaScript
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)
|
||
|
}
|
||
|
});
|
||
|
}
|