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
If you use i18n custom blocks in SFC as i18n resource of locale messages, it will be merged with the locale messages specified by the `messages` option of `useI18n`.
382
+
If you use i18n custom blocks in SFC as i18n resource of locale messages, it will be merged with the locale messages specified by the `messages` option of `useI18n`.
382
383
383
-
The following is an example of using i18n custom blocks and `useI18n` options:
384
+
The following is an example of using i18n custom blocks and `useI18n` options:
In this example, the definition of resources is separated from i18n custom blocks and the `messages` option of `useI18n`, but in local scope, resource messages are specified in the `messages` option in a lump sum for administrative purposes in resource messages or define all resource messages in the i18n custom blocks, which is preferable.
411
412
:::
412
413
414
+
### Shared locale messages for components
415
+
416
+
In Leacy API mode, shared locale messages are used in components with the `sharedMessages` option.
417
+
418
+
In composition API mode, use `mergeLocaleMessage` exported by `useI18n`.
0 commit comments