diff options
Diffstat (limited to 'apps/updatenotification/js-src/app.js')
-rw-r--r-- | apps/updatenotification/js-src/app.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/updatenotification/js-src/app.js b/apps/updatenotification/js-src/app.js index 85279423434..bf96a2ff326 100644 --- a/apps/updatenotification/js-src/app.js +++ b/apps/updatenotification/js-src/app.js @@ -25,6 +25,16 @@ define(function (require) { var Vue = require('vue'); var vSelect = require('vue-select'); Vue.component('v-select', vSelect.VueSelect); + Vue.mixin({ + methods: { + t: function(app, text, vars, count, options) { + return OC.L10N.translate(app, text, vars, count, options); + }, + n: function(app, textSingular, textPlural, count, vars, options) { + return OC.L10N.translatePlural(app, textSingular, textPlural, count, vars, options); + } + } + }); this.vm = new Vue(require('./components/root.vue')); this.vm.newVersionString = data.newVersionString; |