mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(updatenotification): Use @nextcloud/l10n to avoid deprecation warnings
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
b6e73c82ba
commit
2d1b5c8e77
1 changed files with 3 additions and 2 deletions
|
|
@ -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…
Reference in a new issue