From 5804b7ae4d797fa9a9e474ba3660ef4409a7d9ad Mon Sep 17 00:00:00 2001 From: Shahid Date: Wed, 20 Sep 2023 19:47:20 +0500 Subject: [PATCH] Update plugins.md (#2451) Remove globalProperties code not relevant to provide/inject technique --- src/guide/reusability/plugins.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/guide/reusability/plugins.md b/src/guide/reusability/plugins.md index c5d2f1100..5ba45c30c 100644 --- a/src/guide/reusability/plugins.md +++ b/src/guide/reusability/plugins.md @@ -103,12 +103,6 @@ Les plugins nous permettent également d'utiliser `inject` pour fournir une fonc // plugins/i18n.js export default { install: (app, options) => { - app.config.globalProperties.$translate = (key) => { - return key.split('.').reduce((o, i) => { - if (o) return o[i] - }, options) - } - app.provide('i18n', options) } }