Skip to content

Commit a1ac943

Browse files
committed
docs: upgrade vitepress
1 parent 88e45af commit a1ac943

File tree

18 files changed

+280
-272
lines changed

18 files changed

+280
-272
lines changed

docs/api/injection.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ The locales, locale messages, and other resources managed by the instance refere
5454
If the `i18n` component option is not specified, its the same as the VueI18n instance that can be referenced by the i18n instance [global](general#global).
5555

5656
**See Also**
57-
- [Scope and Locale Changing](../../guide/essentials/scope)
58-
- [Composition API](../../guide/advanced/composition)
57+
- [Scope and Locale Changing](../guide/essentials/scope)
58+
- [Composition API](../guide/advanced/composition)
5959

6060
### $t(key)
6161

@@ -75,8 +75,8 @@ In [Composition API mode](general#mode), the `$t` is injected by `app.config.glo
7575
In [Legacy API mode](general#mode), the input / output is the same as for VueI18n instance. About details, see [VueI18n#t](legacy#t-key).
7676

7777
**See Also**
78-
- [Scope and Locale Changing](../../guide/essentials/scope)
79-
- [Composition API](../../guide/advanced/composition)
78+
- [Scope and Locale Changing](../guide/essentials/scope)
79+
- [Composition API](../guide/advanced/composition)
8080

8181
#### Parameters
8282
| Parameter | Type | Description |
@@ -529,8 +529,8 @@ In [Composition API mode](general#mode), the `$rt` is injected by `app.config.gl
529529
In [Legacy API mode](general#mode), the input / output is the same as for VueI18n instance. About details, see [VueI18n#rt](legacy#rt-message).
530530

531531
**See Also**
532-
- [Scope and Locale Changing](../../guide/essentials/scope)
533-
- [Composition API](../../guide/advanced/composition)
532+
- [Scope and Locale Changing](../guide/essentials/scope)
533+
- [Composition API](../guide/advanced/composition)
534534

535535
#### Parameters
536536
| Parameter | Type | Description |
@@ -635,7 +635,7 @@ The input / output is the same as for VueI18n instance. About that details, see
635635
The value of plural is handled with default `1`.
636636

637637
**See Also**
638-
- [Pluralization](../../guide/essentials/pluralization)
638+
- [Pluralization](../guide/essentials/pluralization)
639639

640640
#### Parameters
641641
| Parameter | Type | Description |
@@ -884,7 +884,7 @@ Based on the current `locale`, locale messages will be returned from Composer in
884884

885885
If you change the `locale`, the locale messages returned will also correspond to the locale.
886886

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).
888888

889889
#### Parameters
890890
| Parameter | Type | Description |
@@ -913,9 +913,9 @@ In [Composition API mode](general#i18nmode), the input / output is the same as f
913913
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).
914914

915915
**See Also**
916-
- [Datetime Formatting](../../guide/essentials/datetime)
917-
- [Scope and Locale Changing](../../guide/essentials/scope)
918-
- [Composition API](../../guide/advanced/composition#datetime-formatting)
916+
- [Datetime Formatting](../guide/essentials/datetime)
917+
- [Scope and Locale Changing](../guide/essentials/scope)
918+
- [Composition API](../guide/advanced/composition#datetime-formatting)
919919

920920
#### Parameters
921921
| Parameter | Type | Description |
@@ -1106,9 +1106,9 @@ In [Legacy API mode](general#i18nmode), the input / output is the same as for Vu
11061106
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).
11071107

11081108
**See Also**
1109-
- [Number Formatting](../../guide/essentials/number)
1110-
- [Scope and Locale Changing](../../guide/essentials/scope)
1111-
- [Composition API](../../guide/advanced/composition#number-formatting)
1109+
- [Number Formatting](../guide/essentials/number)
1110+
- [Scope and Locale Changing](../guide/essentials/scope)
1111+
- [Composition API](../guide/advanced/composition#number-formatting)
11121112

11131113
#### Parameters
11141114
| Parameter | Type | Description |

docs/guide/advanced/sfc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ If `$t('hello')` is used in the template, the `hello` key defined by `i18n` cust
4343
:::tip NOTE
4444
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.
4545

46-
About how to usage of `useI18n` , see the [Composition API](composition)
46+
About how to usage of `useI18n` , see the [Composition API](./composition)
4747
:::
4848

4949
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:
312312
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.
313313

314314
:::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).
316316
:::
317317

318318

docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Introduction
22

33
:::tip NOTE
4-
Already know Vue I18n v8.x and just want to learn about what’s new in Vue I18n v9? Check out the [Migration Guide](../guide/migration/breaking)!
4+
Already know Vue I18n v8.x and just want to learn about what’s new in Vue I18n v9? Check out the [Migration Guide](./guide/migration/breaking)!
55
:::
66

77
Vue I18n is internationalization plugin of Vue.js. It easily integrates some localization features to your Vue.js Application. Features includes:

docs/ja/api/component.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ If you want to use it, you need to use [polyfill](https://github.com/formatjs/fo
102102
**See Also**
103103
- [FormattableProps](component#formattableprops)
104104
- [BaseFormatProps](component#baseformatprops)
105-
- [Custom Formatting](../../guide/essentials/datetime#custom-formatting)
105+
- [Custom Formatting](../guide/essentials/datetime#custom-formatting)
106106

107107
## DatetimeFormatProps
108108

@@ -196,7 +196,7 @@ If you want to use it, you need to use [polyfill](https://github.com/formatjs/fo
196196
**See Also**
197197
- [FormattableProps](component#formattableprops)
198198
- [BaseFormatProps](component#baseformatprops)
199-
- [Custom Formatting](../../guide/essentials/number#custom-formatting)
199+
- [Custom Formatting](../guide/essentials/number#custom-formatting)
200200

201201
## NumberFormatProps
202202

@@ -248,7 +248,7 @@ See the following items for property about details
248248
**See Also**
249249
- [TranslationProps](component#translationprops)
250250
- [BaseFormatProps](component#baseformatprops)
251-
- [Component Interpolation](../../guide/advanced/component)
251+
- [Component Interpolation](../guide/advanced/component)
252252

253253
**Examples**
254254

0 commit comments

Comments
 (0)