summaryrefslogtreecommitdiff
path: root/packages/frontend/src/ui/classic.sidebar.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-04-01 14:01:57 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-04-01 14:01:57 +0900
commit9224b6635f17c4e38e4a35b4aa1a47f94e8a3d2e (patch)
treef5e9d461a61dbf711471236331de4f465c99b924 /packages/frontend/src/ui/classic.sidebar.vue
parentrefactor(frontend): remove $i (diff)
downloadmisskey-9224b6635f17c4e38e4a35b4aa1a47f94e8a3d2e.tar.gz
misskey-9224b6635f17c4e38e4a35b4aa1a47f94e8a3d2e.tar.bz2
misskey-9224b6635f17c4e38e4a35b4aa1a47f94e8a3d2e.zip
refactor(frontend): remove $ts and $t
Diffstat (limited to 'packages/frontend/src/ui/classic.sidebar.vue')
-rw-r--r--packages/frontend/src/ui/classic.sidebar.vue12
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/frontend/src/ui/classic.sidebar.vue b/packages/frontend/src/ui/classic.sidebar.vue
index 10aa615b76..42ea5cd785 100644
--- a/packages/frontend/src/ui/classic.sidebar.vue
+++ b/packages/frontend/src/ui/classic.sidebar.vue
@@ -5,12 +5,12 @@
</button>
<div class="post" data-cy-open-post-form @click="post">
<MkButton class="button" gradate full rounded>
- <i class="ti ti-pencil ti-fw"></i><span v-if="!iconOnly" class="text">{{ $ts.note }}</span>
+ <i class="ti ti-pencil ti-fw"></i><span v-if="!iconOnly" class="text">{{ i18n.ts.note }}</span>
</MkButton>
</div>
<div class="divider"></div>
<MkA v-click-anime class="item index" active-class="active" to="/" exact>
- <i class="ti ti-home ti-fw"></i><span class="text">{{ $ts.timeline }}</span>
+ <i class="ti ti-home ti-fw"></i><span class="text">{{ i18n.ts.timeline }}</span>
</MkA>
<template v-for="item in menu">
<div v-if="item === '-'" class="divider"></div>
@@ -21,14 +21,14 @@
</template>
<div class="divider"></div>
<MkA v-if="$i.isAdmin || $i.isModerator" v-click-anime class="item" active-class="active" to="/admin" :behavior="settingsWindowed ? 'modalWindow' : null">
- <i class="ti ti-dashboard ti-fw"></i><span class="text">{{ $ts.controlPanel }}</span>
+ <i class="ti ti-dashboard ti-fw"></i><span class="text">{{ i18n.ts.controlPanel }}</span>
</MkA>
<button v-click-anime class="item _button" @click="more">
- <i class="ti ti-dots ti-fw"></i><span class="text">{{ $ts.more }}</span>
+ <i class="ti ti-dots ti-fw"></i><span class="text">{{ i18n.ts.more }}</span>
<span v-if="otherNavItemIndicated" class="indicator"><i class="_indicatorCircle"></i></span>
</button>
<MkA v-click-anime class="item" active-class="active" to="/settings" :behavior="settingsWindowed ? 'modalWindow' : null">
- <i class="ti ti-settings ti-fw"></i><span class="text">{{ $ts.settings }}</span>
+ <i class="ti ti-settings ti-fw"></i><span class="text">{{ i18n.ts.settings }}</span>
</MkA>
<div class="divider"></div>
<div class="about">
@@ -53,6 +53,7 @@ import { mainRouter } from '@/router';
//import MisskeyLogo from '@assets/client/misskey.svg';
import { defaultStore } from '@/store';
import { instance } from '@/instance';
+import { i18n } from '@/i18n';
export default defineComponent({
components: {
@@ -71,6 +72,7 @@ export default defineComponent({
defaultStore,
instance,
$i,
+ i18n,
};
},