Skip to content

Commit 26c3fb7

Browse files
committed
update docs
1 parent cd5492c commit 26c3fb7

19 files changed

+109
-88
lines changed

docs/vue-i18n.composer.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
Composer Interfaces
88

9-
This is the interface for being used for Vue 3 Composition API.
10-
119
<b>Signature:</b>
1210

1311
```typescript
@@ -76,3 +74,8 @@ export declare type Composer = {
7674
__datetimeParts(...args: unknown[]): string | Intl.DateTimeFormatPart[];
7775
};
7876
```
77+
78+
## Remarks
79+
80+
This is the interface for being used for Vue 3 Composition API.
81+

docs/vue-i18n.composeradditionaloptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## ComposerAdditionalOptions interface
66

7-
Composer additional options
7+
Composer additional options for `useI18n`
88

99
<b>Signature:</b>
1010

docs/vue-i18n.composeroptions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66

77
Composer Options
88

9-
This is options to create composer.
10-
119
<b>Signature:</b>
1210

1311
```typescript
1412
export interface ComposerOptions
1513
```
1614

15+
## Remarks
16+
17+
This is options to create composer.
18+
1719
## Properties
1820

1921
| Property | Type | Description |

docs/vue-i18n.createi18n.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export declare function createI18n(options?: I18nOptions): I18n;
2626

2727
## Remarks
2828

29-
When you use Composable API, you need to specify options of [ComposerOptions](./vue-i18n.composeroptions.md)<!-- -->. When you use Legacy API, you need toto specify options of [VueI18nOptions](./vue-i18n.vuei18noptions.md) and `legacy: true`<!-- -->.
29+
When you use Composable API, you need to specify options of [ComposerOptions](./vue-i18n.composeroptions.md)<!-- -->. When you use Legacy API, you need toto specify options of [VueI18nOptions](./vue-i18n.vuei18noptions.md) and `legacy: true` option.
3030

3131
## Example 1
3232

docs/vue-i18n.i18n.global.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [vue-i18n](./vue-i18n.md) &gt; [I18n](./vue-i18n.i18n.md) &gt; [global](./vue-i18n.i18n.global.md)
4+
5+
## I18n.global property
6+
7+
Global composer
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
readonly global: Composer;
13+
```

docs/vue-i18n.i18n.install.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/vue-i18n.i18n.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ export interface I18n
1616

1717
| Property | Type | Description |
1818
| --- | --- | --- |
19-
| [mode](./vue-i18n.i18n.mode.md) | <code>I18nMode</code> | |
20-
21-
## Methods
22-
23-
| Method | Description |
24-
| --- | --- |
25-
| [install(app, options)](./vue-i18n.i18n.install.md) | |
19+
| [global](./vue-i18n.i18n.global.md) | <code>Composer</code> | Global composer |
20+
| [mode](./vue-i18n.i18n.mode.md) | <code>I18nMode</code> | I18n API mode |
2621

docs/vue-i18n.i18n.mode.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44

55
## I18n.mode property
66

7+
I18n API mode
8+
79
<b>Signature:</b>
810

911
```typescript
1012
readonly mode: I18nMode;
1113
```
14+
15+
## Remarks
16+
17+
if you specified `legacy: true` option in `createI18n`<!-- -->, return `legacy`<!-- -->, else `composable`
18+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [vue-i18n](./vue-i18n.md) &gt; [I18nAdditionalOptions](./vue-i18n.i18nadditionaloptions.md) &gt; [legacy](./vue-i18n.i18nadditionaloptions.legacy.md)
4+
5+
## I18nAdditionalOptions.legacy property
6+
7+
Whether vue-i18n legacy API use on your Vue App.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
legacy?: boolean;
13+
```
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [vue-i18n](./vue-i18n.md) &gt; [I18nAdditionalOptions](./vue-i18n.i18nadditionaloptions.md)
4+
5+
## I18nAdditionalOptions interface
6+
7+
I18n Additional Options for `createI18n`
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export interface I18nAdditionalOptions
13+
```
14+
15+
## Properties
16+
17+
| Property | Type | Description |
18+
| --- | --- | --- |
19+
| [legacy](./vue-i18n.i18nadditionaloptions.legacy.md) | <code>boolean</code> | Whether vue-i18n legacy API use on your Vue App. |
20+

0 commit comments

Comments
 (0)