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
The above code sets the `useI18n` option to `useScope: 'global'`, which allows `useI18n` to return a Composer instance that can be accessed by the i18n instance `global` property. This allows `useI18n` to return the Composer instance that can be accessed by i18n instance`global` property, which is a global scope. The Composer instance is a global scope.
281
+
The above code sets the `useI18n` option to `useScope: 'global'`, which allows `useI18n` to return a Composer instance that can be accessed by the i18n instance `global` property. The Composer instance is a global scope.
282
282
283
283
Then you can compose using the functions and properties exposed from the Composer instance.
284
284
@@ -413,7 +413,7 @@ In this example, the definition of resources is separated from i18n custom block
413
413
414
414
### Shared locale messages for components
415
415
416
-
In Leacy API mode, shared locale messages are used in components with the `sharedMessages` option.
416
+
In Legacy API mode, shared locale messages are used in components with the `sharedMessages` option.
417
417
418
418
In composition API mode, use `mergeLocaleMessage` exported by `useI18n`.
419
419
@@ -484,7 +484,7 @@ And you can also use the setup context in the template, which can be changed as
484
484
</select>
485
485
```
486
486
487
-
When you change the locale of the global scope, components that depend on the global scope, such as `t` translation API can work reactive and switch the display messages to those of the target locale.
487
+
When you change the locale of the global scope, components that depend on the global scope, such as `t` translation API can work reactively and switch the display messages to those of the target locale.
488
488
489
489
If you are using the [implicit way](composition#implicit-with-injected-properties-and-functions), you can also change it in template with `$i18n.locale`, as follows:
0 commit comments