aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/mixins/Nextcloud.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/mixins/Nextcloud.js')
-rw-r--r--core/src/mixins/Nextcloud.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/src/mixins/Nextcloud.js b/core/src/mixins/Nextcloud.js
new file mode 100644
index 00000000000..3a94f85d2c6
--- /dev/null
+++ b/core/src/mixins/Nextcloud.js
@@ -0,0 +1,19 @@
+/**
+ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+import L10n from '../OC/l10n.js'
+import OC from '../OC/index.js'
+
+export default {
+ data() {
+ return {
+ OC,
+ }
+ },
+ methods: {
+ t: L10n.translate.bind(L10n),
+ n: L10n.translatePlural.bind(L10n),
+ },
+}