From ec4de7cca5408e91245863676602fd5810b4e443 Mon Sep 17 00:00:00 2001 From: Pankaj Ratan Lal Date: Wed, 28 Aug 2024 09:45:52 +0530 Subject: [PATCH] Improved the global and local Scope descriptions The earlier text seemed a little difficult to understand. Made some changes to make it comprehensible. --- docs/guide/essentials/scope.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/guide/essentials/scope.md b/docs/guide/essentials/scope.md index 8edd34509..68e09d83d 100644 --- a/docs/guide/essentials/scope.md +++ b/docs/guide/essentials/scope.md @@ -15,18 +15,18 @@ Vue I18n has two scopes the below: ### Global Scope -The global scope allows you to refer to scopes in all components of the Vue application. The global scope is very useful if you want to centrally manage i18n resources across your application. +The global scope in Vue allows you to access and manage internationalization (i18n) resources across all components in your application. This is especially useful for centralizing i18n management. -The global scope is created when you create an i18n instance with `createI18n`, and the one to be scoped is the one for the `VueI18n` instance, which can be accessed by the i18n instance `global` property. What is global scoped is the one of the `VueI18n` instance that is accessible with `global` property of the i18n instance. +When you create an i18n instance using createI18n, a global scope is automatically created. This global scope is tied to the VueI18n instance, which can be accessed through the global property of the i18n instance. Essentially, the global scope refers to the VueI18n instance that is accessible via the i18n instance’s global property. -The global scope is enabled on the target component when the `i18n` component option is unspecified. When global scope is enabled on a component, `VueI18n` instance accessed by `this.$i18n` is essentially the same as i18n instance `global` property. +If the i18n option is not specified in a component, the global scope is automatically enabled for that component. In this case, the VueI18n instance accessed through this.$i18n within the component is the same as the global instance available via the i18n instance’s global property. ### Local Scope -The local scope allows you to apply scopes on each component basis like the `