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/ui/deck | |
| parent | wip (diff) | |
| download | misskey-5a8cc7851b4af9ae4a0d7efc5b66b224bbe9b4c8.tar.gz misskey-5a8cc7851b4af9ae4a0d7efc5b66b224bbe9b4c8.tar.bz2 misskey-5a8cc7851b4af9ae4a0d7efc5b66b224bbe9b4c8.zip | |
wip
Diffstat (limited to 'src/client/ui/deck')
| -rw-r--r-- | src/client/ui/deck/antenna-column.vue | 4 | ||||
| -rw-r--r-- | src/client/ui/deck/column.vue | 18 | ||||
| -rw-r--r-- | src/client/ui/deck/list-column.vue | 4 | ||||
| -rw-r--r-- | src/client/ui/deck/notifications-column.vue | 2 | ||||
| -rw-r--r-- | src/client/ui/deck/tl-column.vue | 12 | ||||
| -rw-r--r-- | src/client/ui/deck/widgets-column.vue | 8 |
6 files changed, 24 insertions, 24 deletions
diff --git a/src/client/ui/deck/antenna-column.vue b/src/client/ui/deck/antenna-column.vue index 5fe1835c35..0b3ae3af58 100644 --- a/src/client/ui/deck/antenna-column.vue +++ b/src/client/ui/deck/antenna-column.vue @@ -48,7 +48,7 @@ export default defineComponent({ created() { this.menu = [{ icon: faCog, - text: this.$t('selectAntenna'), + text: this.$ts.selectAntenna, action: this.setAntenna }]; }, @@ -63,7 +63,7 @@ export default defineComponent({ async setAntenna() { const antennas = await os.api('antennas/list'); const { canceled, result: antenna } = await os.dialog({ - title: this.$t('selectAntenna'), + title: this.$ts.selectAntenna, type: null, select: { items: antennas.map(x => ({ diff --git a/src/client/ui/deck/column.vue b/src/client/ui/deck/column.vue index b1b38199b6..41dcc3e360 100644 --- a/src/client/ui/deck/column.vue +++ b/src/client/ui/deck/column.vue @@ -136,10 +136,10 @@ export default defineComponent({ getMenu() { const items = [{ icon: faPencilAlt, - text: this.$t('rename'), + text: this.$ts.rename, action: () => { os.dialog({ - title: this.$t('rename'), + title: this.$ts.rename, input: { default: this.column.name, allowEmpty: false @@ -151,43 +151,43 @@ export default defineComponent({ } }, null, { icon: faArrowLeft, - text: this.$t('_deck.swapLeft'), + text: this.$ts._deck.swapLeft, action: () => { swapLeftColumn(this.column.id); } }, { icon: faArrowRight, - text: this.$t('_deck.swapRight'), + text: this.$ts._deck.swapRight, action: () => { swapRightColumn(this.column.id); } }, this.isStacked ? { icon: faArrowUp, - text: this.$t('_deck.swapUp'), + text: this.$ts._deck.swapUp, action: () => { swapUpColumn(this.column.id); } } : undefined, this.isStacked ? { icon: faArrowDown, - text: this.$t('_deck.swapDown'), + text: this.$ts._deck.swapDown, action: () => { swapDownColumn(this.column.id); } } : undefined, null, { icon: faWindowRestore, - text: this.$t('_deck.stackLeft'), + text: this.$ts._deck.stackLeft, action: () => { stackLeftColumn(this.column.id); } }, this.isStacked ? { icon: faWindowMaximize, - text: this.$t('_deck.popRight'), + text: this.$ts._deck.popRight, action: () => { popRightColumn(this.column.id); } } : undefined, null, { icon: faTrashAlt, - text: this.$t('remove'), + text: this.$ts.remove, action: () => { removeColumn(this.column.id); } diff --git a/src/client/ui/deck/list-column.vue b/src/client/ui/deck/list-column.vue index b120236147..364d8265e7 100644 --- a/src/client/ui/deck/list-column.vue +++ b/src/client/ui/deck/list-column.vue @@ -48,7 +48,7 @@ export default defineComponent({ created() { this.menu = [{ icon: faCog, - text: this.$t('selectList'), + text: this.$ts.selectList, action: this.setList }]; }, @@ -63,7 +63,7 @@ export default defineComponent({ async setList() { const lists = await os.api('users/lists/list'); const { canceled, result: list } = await os.dialog({ - title: this.$t('selectList'), + title: this.$ts.selectList, type: null, select: { items: lists.map(x => ({ diff --git a/src/client/ui/deck/notifications-column.vue b/src/client/ui/deck/notifications-column.vue index 8718695905..0c7f72d9f6 100644 --- a/src/client/ui/deck/notifications-column.vue +++ b/src/client/ui/deck/notifications-column.vue @@ -42,7 +42,7 @@ export default defineComponent({ created() { this.menu = [{ icon: faCog, - text: this.$t('notificationSetting'), + text: this.$ts.notificationSetting, action: () => { os.popup(import('@/components/notification-setting-window.vue'), { includingTypes: this.column.includingTypes, diff --git a/src/client/ui/deck/tl-column.vue b/src/client/ui/deck/tl-column.vue index 6b05f21c33..45b4c72fba 100644 --- a/src/client/ui/deck/tl-column.vue +++ b/src/client/ui/deck/tl-column.vue @@ -63,7 +63,7 @@ export default defineComponent({ created() { this.menu = [{ icon: faCog, - text: this.$t('timeline'), + text: this.$ts.timeline, action: this.setType }]; }, @@ -81,17 +81,17 @@ export default defineComponent({ methods: { async setType() { const { canceled, result: src } = await os.dialog({ - title: this.$t('timeline'), + title: this.$ts.timeline, type: null, select: { items: [{ - value: 'home', text: this.$t('_timelines.home') + value: 'home', text: this.$ts._timelines.home }, { - value: 'local', text: this.$t('_timelines.local') + value: 'local', text: this.$ts._timelines.local }, { - value: 'social', text: this.$t('_timelines.social') + value: 'social', text: this.$ts._timelines.social }, { - value: 'global', text: this.$t('_timelines.global') + value: 'global', text: this.$ts._timelines.global }] }, }); diff --git a/src/client/ui/deck/widgets-column.vue b/src/client/ui/deck/widgets-column.vue index 8f526f9738..39d7dc1cba 100644 --- a/src/client/ui/deck/widgets-column.vue +++ b/src/client/ui/deck/widgets-column.vue @@ -6,11 +6,11 @@ <template v-if="edit"> <header> <MkSelect v-model:value="widgetAdderSelected" style="margin-bottom: var(--margin)"> - <template #label>{{ $t('selectWidget') }}</template> + <template #label>{{ $ts.selectWidget }}</template> <option v-for="widget in widgets" :value="widget" :key="widget">{{ $t(`_widgets.${widget}`) }}</option> </MkSelect> - <MkButton inline @click="addWidget" primary><Fa :icon="faPlus"/> {{ $t('add') }}</MkButton> - <MkButton inline @click="edit = false">{{ $t('close') }}</MkButton> + <MkButton inline @click="addWidget" primary><Fa :icon="faPlus"/> {{ $ts.add }}</MkButton> + <MkButton inline @click="edit = false">{{ $ts.close }}</MkButton> </header> <XDraggable v-model="_widgets" @@ -84,7 +84,7 @@ export default defineComponent({ created() { this.menu = [{ icon: faCog, - text: this.$t('edit'), + text: this.$ts.edit, action: () => { this.edit = !this.edit; } |