Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit 6df259c

Browse files
committed
fix(l10n): use direct imports of translate functions
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent f33b949 commit 6df259c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/CollectionList.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
</ul>
6666
</template>
6767
<script>
68+
import { t } from '@nextcloud/l10n'
6869
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
6970
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
7071
import debounce from 'lodash-es/debounce.js'
@@ -213,6 +214,7 @@ export default {
213214
},
214215
215216
methods: {
217+
t,
216218
select(selectedOption, id) {
217219
if (selectedOption.method === METHOD_CREATE_COLLECTION) {
218220
selectedOption.action().then((id) => {

src/components/CollectionListItem.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
</template>
7474

7575
<script>
76+
import { t } from '@nextcloud/l10n'
7677
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
7778
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js'
7879
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
@@ -123,6 +124,7 @@ export default {
123124
},
124125
},
125126
methods: {
127+
t,
126128
toggleDetails() {
127129
this.detailsOpen = !this.detailsOpen
128130
},

0 commit comments

Comments
 (0)