You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/essentials/scope.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ If the i18n option is not specified in a component, the global scope is automati
24
24
25
25
### Local Scope
26
26
27
-
The local scope in Vue allows you to manage i18n resources on a per-component basis, similar to how <stylescoped> works in single-file components. When a component has a local scope, only that component's i18n resources are active. This is particularly useful when you want to manage locale messages specific to each component.
27
+
The local scope in Vue allows you to manage i18n resources on a per-component basis, similar to how `<style scoped>` works in single-file components. When a component has a local scope, only that component's i18n resources are active. This is particularly useful when you want to manage locale messages specific to each component.
28
28
29
29
Local scope is enabled by specifying the i18n option within the component. This creates a new VueI18n instance when the component is initialized. As a result, the VueI18n instance accessed through this.$i18n in that component is distinct from the global VueI18n instance available through the global property of the i18n instance.
0 commit comments