fix(updatenotification): Use `@nextcloud/l10n` to avoid deprecation warnings

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/39106/head
Ferdinand Thiessen 2 years ago committed by John Molakvoæ
parent b6e73c82ba
commit 2d1b5c8e77
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
  1. 5
      apps/updatenotification/src/init.js

@ -20,6 +20,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import { translate, translatePlural } from '@nextcloud/l10n'
import Vue from 'vue'
import Root from './components/UpdateNotification.vue'
@ -27,10 +28,10 @@ import Root from './components/UpdateNotification.vue'
Vue.mixin({
methods: {
t(app, text, vars, count, options) {
return OC.L10N.translate(app, text, vars, count, options)
return translate(app, text, vars, count, options)
},
n(app, textSingular, textPlural, count, vars, options) {
return OC.L10N.translatePlural(app, textSingular, textPlural, count, vars, options)
return translatePlural(app, textSingular, textPlural, count, vars, options)
},
},
})

Loading…
Cancel
Save