diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-12-26 10:01:32 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-12-26 10:01:32 +0900 |
| commit | 9d81d068533aaddf8e8654f9e86374c6531766bb (patch) | |
| tree | 2b6ff1106eff6431a2562e7e1fd8fd2531000045 /src/client/init.ts | |
| parent | Showusers order by updateAt NULL considered as max (#7015) (diff) | |
| download | misskey-9d81d068533aaddf8e8654f9e86374c6531766bb.tar.gz misskey-9d81d068533aaddf8e8654f9e86374c6531766bb.tar.bz2 misskey-9d81d068533aaddf8e8654f9e86374c6531766bb.zip | |
wip
Diffstat (limited to 'src/client/init.ts')
| -rw-r--r-- | src/client/init.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client/init.ts b/src/client/init.ts index 609c1086a5..c5f147ca66 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -40,11 +40,11 @@ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; import widgets from '@/widgets'; import directives from '@/directives'; import components from '@/components'; -import { version, ui } from '@/config'; +import { version, ui, lang } from '@/config'; import { router } from '@/router'; import { applyTheme } from '@/scripts/theme'; import { isDeviceDarkmode } from '@/scripts/is-device-darkmode'; -import { i18n, lang } from '@/i18n'; +import { i18n } from '@/i18n'; import { stream, isMobile, dialog } from '@/os'; import * as sound from '@/scripts/sound'; import { $i, refreshAccount, login, updateAccount, signout } from '@/account'; @@ -53,6 +53,8 @@ import { fetchInstance, instance } from '@/instance'; console.info(`Misskey v${version}`); +window.clearTimeout(window.mkBootTimer); + if (_DEV_) { console.warn('Development mode!!!'); @@ -175,10 +177,11 @@ app.config.globalProperties = { $i, $store: defaultStore, $instance: instance, + $t: i18n.t, + $ts: i18n.locale, }; app.use(router); -app.use(i18n); // eslint-disable-next-line vue/component-definition-name-casing app.component('Fa', FontAwesomeIcon); |