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
@@ -884,7 +884,7 @@ Based on the current `locale`, locale messages will be returned from Composer in
884
884
885
885
If you change the `locale`, the locale messages returned will also correspond to the locale.
886
886
887
-
If there are no locale messages for the given `key` in the composer instance messages, they will be returned with [fallbacking](../../guide/essentials/fallback).
887
+
If there are no locale messages for the given `key` in the composer instance messages, they will be returned with [fallbacking](../guide/essentials/fallback).
888
888
889
889
#### Parameters
890
890
| Parameter | Type | Description |
@@ -913,9 +913,9 @@ In [Composition API mode](general#i18nmode), the input / output is the same as f
913
913
In [Composition API mode](general#i18nmode), the `$d` is injected by `app.config.globalProperties`. The input / output is the same as for Composer instance, and it works on **global scope**. About that details, see [Composer#d](composition#d-value).
@@ -1106,9 +1106,9 @@ In [Legacy API mode](general#i18nmode), the input / output is the same as for Vu
1106
1106
In [Composition API mode](general#i18nmode), the `$n` is injected by `app.config.globalProperties`. The input / output is the same as for Composer instance, and it works on **global scope**. About that details, see [Composer#n](composition#n-value).
Copy file name to clipboardExpand all lines: docs/guide/advanced/sfc.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ If `$t('hello')` is used in the template, the `hello` key defined by `i18n` cust
43
43
:::tip NOTE
44
44
The Composition API requires `useI18n` to return the `setup` context in order to localize with reference to locale messages defined in the i18n custom blocks.
45
45
46
-
About how to usage of `useI18n` , see the [Composition API](composition)
46
+
About how to usage of `useI18n` , see the [Composition API](./composition)
47
47
:::
48
48
49
49
To use i18n custom blocks, you need to use the following plugins for bundler.
@@ -312,7 +312,7 @@ You can use define locale messages for global scope with `global` attribute:
312
312
In the above example, since the `global` attribute is set, the locale messages defined in `i18n` custom blocks can be merged as a resource for locale messages of global scope.
313
313
314
314
:::warning NOTICE
315
-
The locale messages for global scope defined in i18n custom blocks are available **only composition API mode**. You need to run `useI18n` option to `useScope: 'global'` at `setup`. About details, see the [Composition API](/advanced/composition).
315
+
The locale messages for global scope defined in i18n custom blocks are available **only composition API mode**. You need to run `useI18n` option to `useScope: 'global'` at `setup`. About details, see the [Composition API](./composition).
0 commit comments