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
Copy file name to clipboardExpand all lines: packages/petite-vue-i18n/src/vue.d.ts
+5-16Lines changed: 5 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,7 @@ import type {
9
9
DefineLocaleMessage,
10
10
ExportedGlobalComposer,
11
11
RemovedIndexResources,
12
-
TranslateResult,
13
-
VueI18n,
14
-
VueI18nOptions
12
+
TranslateResult
15
13
}from'@intlify/vue-i18n-core/petite'
16
14
17
15
// --- THE CONTENT BELOW THIS LINE WILL BE APPENDED TO DTS FILE IN DIST DIRECTORY --- //
@@ -25,13 +23,6 @@ declare module 'vue' {
25
23
* @VueI18nInjection
26
24
*/
27
25
exportinterfaceComponentCustomOptions{
28
-
/**
29
-
* VueI18n options
30
-
*
31
-
* @remarks
32
-
* See the {@link VueI18nOptions}
33
-
*/
34
-
i18n?: VueI18nOptions
35
26
/**
36
27
* For custom blocks options
37
28
* @internal
@@ -51,23 +42,21 @@ declare module 'vue' {
51
42
*/
52
43
exportinterfaceComponentCustomProperties{
53
44
/**
54
-
* Exported Global Composer instance, or global VueI18n instance.
45
+
* Exported Global Composer instance
55
46
*
56
47
* @remarks
57
-
* You can get the {@link ExportedGlobalComposer | exported composer instance} which are exported from global {@link Composer | composer instance} created with {@link createI18n}, or global {@link VueI18n | VueI18n instance}.
58
-
* You can get the exported composer instance in {@link I18nMode | Composition API mode}, or the Vuei18n instance in {@link I18nMode | Legacy API mode}, which is the instance you can refer to with this property.
48
+
* You can get the {@link ExportedGlobalComposer | exported composer instance} which are exported from global {@link Composer | composer instance} created with {@link createI18n}
49
+
* You can get the exported composer instance in {@link I18nMode | Composition API mode}
59
50
* The locales, locale messages, and other resources managed by the instance referenced by this property are valid as global scope.
60
51
* If the `i18n` component custom option is not specified, it's the same as the VueI18n instance that can be referenced by the i18n instance {@link I18n.global | global} property.
61
52
*/
62
-
$i18n: VueI18n|ExportedGlobalComposer
53
+
$i18n: ExportedGlobalComposer
63
54
/**
64
55
* Locale message translation
65
56
*
66
57
* @remarks
67
58
* If this is used in a reactive context, it will re-evaluate once the locale changes.
68
59
*
69
-
* In {@link I18nMode | Legacy API mode}, the input / output is the same as for VueI18n instance. About that details, see {@link VueI18n#t | `VueI18n#t`}.
70
-
*
71
60
* In {@link I18nMode | Composition API mode}, the `$t` is injected by `app.config.globalProperties`.
72
61
* the input / output is the same as for Composer, and it work on **global scope**. About that details, see {@link Composer#t | `Composer#t` }.
Copy file name to clipboardExpand all lines: packages/vue-i18n/src/vue.d.ts
+2-21Lines changed: 2 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,6 @@ import type {
22
22
TranslateResult,
23
23
Translation,
24
24
VueI18nInstance,
25
-
VueI18nOptions,
26
25
VueMessageType
27
26
}from'@intlify/vue-i18n-core'
28
27
@@ -37,13 +36,6 @@ declare module 'vue' {
37
36
* @VueI18nInjection
38
37
*/
39
38
exportinterfaceComponentCustomOptions{
40
-
/**
41
-
* VueI18n options
42
-
*
43
-
* @remarks
44
-
* See the {@link VueI18nOptions}
45
-
*/
46
-
i18n?: VueI18nOptions
47
39
/**
48
40
* For custom blocks options
49
41
* @internal
@@ -63,11 +55,10 @@ declare module 'vue' {
63
55
*/
64
56
exportinterfaceComponentCustomProperties{
65
57
/**
66
-
* Exported Global Composer instance, or global VueI18n instance.
58
+
* Exported Global Composer instance
67
59
*
68
60
* @remarks
69
-
* You can get the {@link ExportedGlobalComposer | exported composer instance} which are exported from global {@link Composer | composer instance} created with {@link createI18n}, or global {@link VueI18n | VueI18n instance}.
70
-
* You can get the exported composer instance in {@link I18nMode | Composition API mode}, or the Vuei18n instance in {@link I18nMode | Legacy API mode}, which is the instance you can refer to with this property.
61
+
* You can get the {@link ExportedGlobalComposer | exported composer instance} which are exported from global {@link Composer | composer instance} created with {@link createI18n}
71
62
* The locales, locale messages, and other resources managed by the instance referenced by this property are valid as global scope.
72
63
* If the `i18n` component custom option is not specified, it's the same as the VueI18n instance that can be referenced by the i18n instance {@link I18n.global | global} property.
73
64
*/
@@ -78,8 +69,6 @@ declare module 'vue' {
78
69
* @remarks
79
70
* If this is used in a reactive context, it will re-evaluate once the locale changes.
80
71
*
81
-
* In {@link I18nMode | Legacy API mode}, the input / output is the same as for VueI18n instance. About that details, see {@link VueI18n#t | `VueI18n#t`}.
82
-
*
83
72
* In {@link I18nMode | Composition API mode}, the `$t` is injected by `app.config.globalProperties`.
84
73
* the input / output is the same as for Composer, and it work on **global scope**. About that details, see {@link Composer#t | `Composer#t` }.
85
74
*
@@ -422,8 +411,6 @@ declare module 'vue' {
422
411
* @remarks
423
412
* If this is used in a reactive context, it will re-evaluate once the locale changes.
424
413
*
425
-
* In {@link I18nMode | Legacy API mode}, the input / output is the same as for VueI18n instance. About that details, see {@link VueI18n#rt | `VueI18n#rt`}.
426
-
*
427
414
* In {@link I18nMode | Composition API mode}, the `$rt` is injected by `app.config.globalProperties`.
428
415
* the input / output is the same as for Composer, and it work on **global scope**. About that details, see {@link Composer#rt | `Composer#rt` }.
429
416
*
@@ -514,8 +501,6 @@ declare module 'vue' {
514
501
* @remarks
515
502
* If this is used in a reactive context, it will re-evaluate once the locale changes.
516
503
*
517
-
* In {@link I18nMode | Legacy API mode}, the input / output is the same as for VueI18n instance. About that details, see {@link VueI18n#d | `VueI18n#d` }.
518
-
*
519
504
* In {@link I18nMode | Composition API mode}, the `$d` is injected by `app.config.globalProperties`.
520
505
* the input / output is the same as for Composer instance, and it work on **global scope**. About that details, see {@link Composer#d | `Composer#d` }.
521
506
*
@@ -676,8 +661,6 @@ declare module 'vue' {
676
661
* @remarks
677
662
* If this is used in a reactive context, it will re-evaluate once the locale changes.
678
663
*
679
-
* In {@link I18nMode | Legacy API mode}, the input / output is the same as for VueI18n instance. About that details, see {@link VueI18n#n | `VueI18n.n` }.
680
-
*
681
664
* In {@link I18nMode | Composition API mode}, the `$n` is injected by `app.config.globalProperties`.
682
665
* the input / output is the same as for Composer instance, and it work on **global scope**. About that details, see {@link Composer#n | `Composer.n` }.
683
666
*
@@ -867,8 +850,6 @@ declare module 'vue' {
867
850
/**
868
851
* Locale messages getter
869
852
*
870
-
* In {@link I18nMode | Legacy API mode}, the input / output is the same as for VueI18n instance. About that details, see {@link VueI18n#tm | `VueI18n#tm` }.
871
-
*
872
853
* @remarks
873
854
* In {@link I18nMode | Composition API mode}, the `$tm` is injected by `app.config.globalProperties`.
874
855
* the input / output is the same as for Composer instance, and it work on **global scope**. About that details, see {@link Composer#tm | `Composer.tm` }.
0 commit comments