Skip to content

Commit d9d712e

Browse files
committed
docs: fix bad locale changeing at local scope
1 parent f8d175b commit d9d712e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/essentials/scope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,5 @@ i18n.global.locale = 'en'
107107
```
108108

109109
:::warning NOTICE
110-
Changing `locale` of local scope does not affect `locale` of global scope. This means that changing the locale in `$i18n.locale` in local scope component will not change the entire application’s locale, only that component. Only `$i18n.locale` can change the entire application’s locale.
110+
Changing `locale` of local scope does not affect `locale` of global scope. This means that changing the locale in `$i18n.locale` in local scope component will not change the entire application’s locale, only that component. Use `$root.$i18n.locale` instead of `$i18n.locale`.
111111
:::

0 commit comments

Comments
 (0)