aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-07-02 01:58:49 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-07-13 10:05:01 +0200
commit2d1b5c8e77d9def803c6eac59d3526414bad4e81 (patch)
tree552b29c65c4606c98412e620a90aa6e7da7ff020
parentb6e73c82ba364b57ced3a974a54dda07de050d33 (diff)
downloadnextcloud-server-2d1b5c8e77d9def803c6eac59d3526414bad4e81.tar.gz
nextcloud-server-2d1b5c8e77d9def803c6eac59d3526414bad4e81.zip
fix(updatenotification): Use `@nextcloud/l10n` to avoid deprecation warnings
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r--apps/updatenotification/src/init.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/updatenotification/src/init.js b/apps/updatenotification/src/init.js
index dc25ca363b4..8d0e18e1bf1 100644
--- a/apps/updatenotification/src/init.js
+++ b/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)
},
},
})