mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-01 03:18:32 +00:00
4b6ff3797e
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
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)
|
|
}
|
|
});
|
|
}
|