diff --git a/js-src/app.js b/js-src/app.js index b8fd7a308..9ede5a443 100644 --- a/js-src/app.js +++ b/js-src/app.js @@ -35,6 +35,17 @@ define(function (require) { // Setup Vue var Vue = require('vue'); + Vue.mixin({ + methods: { + t(app, text, vars, count, options) { + return OC.L10N.translate(app, text, vars, count, options); + }, + n(app, textSingular, textPlural, count, vars, options) { + return OC.L10N.translatePlural(app, textSingular, textPlural, count, vars, options); + } + } + }); + this.vm = new Vue(require('./components/root.vue')); // Initial call to the notification endpoint diff --git a/js-src/components/notification.vue b/js-src/components/notification.vue index 414a20114..4be15e64f 100644 --- a/js-src/components/notification.vue +++ b/js-src/components/notification.vue @@ -3,7 +3,7 @@