{{ t('mediadc', 'Collect non sensitive system info for bug report') }}
-
@@ -41,7 +40,6 @@
{{ t('mediadc', 'System info') }}
{{ t('mediadc', 'Copy to clipboard') }}
diff --git a/src/main.js b/src/main.js
index 189755df..5dde3e31 100644
--- a/src/main.js
+++ b/src/main.js
@@ -24,7 +24,7 @@
import { generateFilePath } from '@nextcloud/router'
import { getRequestToken } from '@nextcloud/auth'
-import Nextcloudl10n from './mixins/Nextcludl10n.js'
+import { translate, translatePlural } from '@nextcloud/l10n'
import Vue from 'vue'
import AdminSettings from './components/settings/AdminSettings.vue'
@@ -34,7 +34,10 @@ __webpack_nonce__ = btoa(getRequestToken())
// eslint-disable-next-line
__webpack_public_path__ = generateFilePath('cloud_py_api', '', 'js/')
-Vue.mixin(Nextcloudl10n)
+Vue.prototype.t = translate
+Vue.prototype.n = translatePlural
+Vue.prototype.OC = window.OC
+Vue.prototype.OCA = window.OCA
const View = Vue.extend(AdminSettings)
new View().$mount('#cloud_py_api-admin-settings')
diff --git a/src/mixins/Nextcludl10n.js b/src/mixins/Nextcludl10n.js
deleted file mode 100644
index a883c8da..00000000
--- a/src/mixins/Nextcludl10n.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- * @copyright Copyright (c) 2022-2023 Andrey Borysenko
- *
- * @copyright Copyright (c) 2022-2023 Alexander Piskun
- *
- * @author 2022-2023 Andrey Borysenko
- *
- * @license AGPL-3.0-or-later
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see .
- *
- */
-
-import { translate as t, translatePlural as n } from '@nextcloud/l10n'
-
-export default {
- methods: {
- t,
- n,
- },
-}