aboutsummaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/src/updatenotification.js
blob: 44b783e145494ce77385a6c9b1c0590f94ceabed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
 * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
import { translate, translatePlural } from '@nextcloud/l10n'

import Vue from 'vue'
import Root from './components/UpdateNotification.vue'

Vue.mixin({
	methods: {
		t(app, text, vars, count, options) {
			return translate(app, text, vars, count, options)
		},
		n(app, textSingular, textPlural, count, vars, options) {
			return translatePlural(app, textSingular, textPlural, count, vars, options)
		},
	},
})

// eslint-disable-next-line no-new
new Vue({
	el: '#updatenotification',
	render: h => h(Root),
})