diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-12-26 10:47:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-12-26 10:47:36 +0900 |
| commit | 5a8cc7851b4af9ae4a0d7efc5b66b224bbe9b4c8 (patch) | |
| tree | 18f6338f1d5935c401298515d4e400d5a2306301 /src/client/components/sidebar.vue | |
| parent | wip (diff) | |
| download | misskey-5a8cc7851b4af9ae4a0d7efc5b66b224bbe9b4c8.tar.gz misskey-5a8cc7851b4af9ae4a0d7efc5b66b224bbe9b4c8.tar.bz2 misskey-5a8cc7851b4af9ae4a0d7efc5b66b224bbe9b4c8.zip | |
wip
Diffstat (limited to 'src/client/components/sidebar.vue')
| -rw-r--r-- | src/client/components/sidebar.vue | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/client/components/sidebar.vue b/src/client/components/sidebar.vue index 584093f32a..b2c0283a47 100644 --- a/src/client/components/sidebar.vue +++ b/src/client/components/sidebar.vue @@ -15,7 +15,7 @@ <MkAvatar :user="$i" class="avatar"/><MkAcct class="text" :user="$i"/> </button> <MkA class="item index" active-class="active" to="/" exact> - <Fa :icon="faHome" fixed-width/><span class="text">{{ $t('timeline') }}</span> + <Fa :icon="faHome" fixed-width/><span class="text">{{ $ts.timeline }}</span> </MkA> <template v-for="item in menu"> <div v-if="item === '-'" class="divider"></div> @@ -26,14 +26,14 @@ </template> <div class="divider"></div> <button class="item _button" :class="{ active: $route.path === '/instance' || $route.path.startsWith('/instance/') }" v-if="$i.isAdmin || $i.isModerator" @click="oepnInstanceMenu"> - <Fa :icon="faServer" fixed-width/><span class="text">{{ $t('instance') }}</span> + <Fa :icon="faServer" fixed-width/><span class="text">{{ $ts.instance }}</span> </button> <button class="item _button" @click="more"> - <Fa :icon="faEllipsisH" fixed-width/><span class="text">{{ $t('more') }}</span> + <Fa :icon="faEllipsisH" fixed-width/><span class="text">{{ $ts.more }}</span> <i v-if="otherNavItemIndicated"><Fa :icon="faCircle"/></i> </button> <MkA class="item" active-class="active" to="/settings"> - <Fa :icon="faCog" fixed-width/><span class="text">{{ $t('settings') }}</span> + <Fa :icon="faCog" fixed-width/><span class="text">{{ $ts.settings }}</span> </MkA> </div> </nav> @@ -121,7 +121,7 @@ export default defineComponent({ if (this.searching) return; os.dialog({ - title: this.$t('search'), + title: this.$ts.search, input: true }).then(async ({ canceled, result: query }) => { if (canceled || query == null || query === '') return; @@ -145,18 +145,18 @@ export default defineComponent({ os.modalMenu([...[{ type: 'link', - text: this.$t('profile'), + text: this.$ts.profile, to: `/@${ this.$i.username }`, avatar: this.$i, }, null, ...accountItems, { icon: faPlus, - text: this.$t('addAcount'), + text: this.$ts.addAcount, action: () => { os.modalMenu([{ - text: this.$t('existingAcount'), + text: this.$ts.existingAcount, action: () => { this.addAcount(); }, }, { - text: this.$t('createAccount'), + text: this.$ts.createAccount, action: () => { this.createAccount(); }, }], ev.currentTarget || ev.target); }, @@ -168,57 +168,57 @@ export default defineComponent({ oepnInstanceMenu(ev) { os.modalMenu([{ type: 'link', - text: this.$t('dashboard'), + text: this.$ts.dashboard, to: '/instance', icon: faTachometerAlt, }, null, this.$i.isAdmin ? { type: 'link', - text: this.$t('settings'), + text: this.$ts.settings, to: '/instance/settings', icon: faCog, } : undefined, { type: 'link', - text: this.$t('customEmojis'), + text: this.$ts.customEmojis, to: '/instance/emojis', icon: faLaugh, }, { type: 'link', - text: this.$t('users'), + text: this.$ts.users, to: '/instance/users', icon: faUsers, }, { type: 'link', - text: this.$t('files'), + text: this.$ts.files, to: '/instance/files', icon: faCloud, }, { type: 'link', - text: this.$t('jobQueue'), + text: this.$ts.jobQueue, to: '/instance/queue', icon: faExchangeAlt, }, { type: 'link', - text: this.$t('federation'), + text: this.$ts.federation, to: '/instance/federation', icon: faGlobe, }, { type: 'link', - text: this.$t('relays'), + text: this.$ts.relays, to: '/instance/relays', icon: faProjectDiagram, }, { type: 'link', - text: this.$t('announcements'), + text: this.$ts.announcements, to: '/instance/announcements', icon: faBroadcastTower, }, { type: 'link', - text: this.$t('abuseReports'), + text: this.$ts.abuseReports, to: '/instance/abuses', icon: faExclamationCircle, }, { type: 'link', - text: this.$t('logs'), + text: this.$ts.logs, to: '/instance/logs', icon: faStream, }], ev.currentTarget || ev.target); |