vue-intlayer 8.4.0 → 8.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WrappedIntl } from '@intlayer/core/utils';
|
|
1
2
|
import { LocalesValues } from '@intlayer/types/module_augmentation';
|
|
2
3
|
/**
|
|
3
4
|
* Vue composable that provides a locale-bound `Intl` object.
|
|
@@ -35,62 +36,4 @@ import { LocalesValues } from '@intlayer/types/module_augmentation';
|
|
|
35
36
|
* </script>
|
|
36
37
|
* ```
|
|
37
38
|
*/
|
|
38
|
-
export declare const useIntl: (locale?: LocalesValues) => import('vue').ComputedRef<
|
|
39
|
-
Collator: {
|
|
40
|
-
new (locales?: LocalesValues, options?: Intl.CollatorOptions | undefined): Intl.Collator;
|
|
41
|
-
new (options?: (Intl.CollatorOptions & {
|
|
42
|
-
locale?: LocalesValues;
|
|
43
|
-
}) | undefined): Intl.Collator;
|
|
44
|
-
};
|
|
45
|
-
NumberFormat: {
|
|
46
|
-
new (locales?: LocalesValues, options?: Intl.NumberFormatOptions | undefined): Intl.NumberFormat;
|
|
47
|
-
new (options?: (Intl.NumberFormatOptions & {
|
|
48
|
-
locale?: LocalesValues;
|
|
49
|
-
}) | undefined): Intl.NumberFormat;
|
|
50
|
-
};
|
|
51
|
-
DateTimeFormat: {
|
|
52
|
-
new (locales?: LocalesValues, options?: Intl.DateTimeFormatOptions | undefined): Intl.DateTimeFormat;
|
|
53
|
-
new (options?: (Intl.DateTimeFormatOptions & {
|
|
54
|
-
locale?: LocalesValues;
|
|
55
|
-
}) | undefined): Intl.DateTimeFormat;
|
|
56
|
-
};
|
|
57
|
-
getCanonicalLocales: typeof Intl.getCanonicalLocales;
|
|
58
|
-
readonly PluralRules: {
|
|
59
|
-
new (locales?: LocalesValues, options?: Intl.PluralRulesOptions | undefined): Intl.PluralRules;
|
|
60
|
-
new (options?: (Intl.PluralRulesOptions & {
|
|
61
|
-
locale?: LocalesValues;
|
|
62
|
-
}) | undefined): Intl.PluralRules;
|
|
63
|
-
};
|
|
64
|
-
readonly RelativeTimeFormat: {
|
|
65
|
-
new (locales?: LocalesValues, options?: Intl.RelativeTimeFormatOptions | undefined): Intl.RelativeTimeFormat;
|
|
66
|
-
new (options?: (Intl.RelativeTimeFormatOptions & {
|
|
67
|
-
locale?: LocalesValues;
|
|
68
|
-
}) | undefined): Intl.RelativeTimeFormat;
|
|
69
|
-
};
|
|
70
|
-
readonly Locale: {
|
|
71
|
-
new (locales?: LocalesValues, options?: Intl.LocaleOptions | undefined): Intl.Locale;
|
|
72
|
-
new (options?: (Intl.LocaleOptions & {
|
|
73
|
-
locale?: LocalesValues;
|
|
74
|
-
}) | undefined): Intl.Locale;
|
|
75
|
-
};
|
|
76
|
-
readonly DisplayNames: {
|
|
77
|
-
prototype: Intl.DisplayNames;
|
|
78
|
-
new (locales: Intl.LocalesArgument, options: Intl.DisplayNamesOptions): Intl.DisplayNames;
|
|
79
|
-
supportedLocalesOf(locales?: Intl.LocalesArgument, options?: {
|
|
80
|
-
localeMatcher?: Intl.RelativeTimeFormatLocaleMatcher;
|
|
81
|
-
}): Intl.UnicodeBCP47LocaleIdentifier[];
|
|
82
|
-
};
|
|
83
|
-
readonly ListFormat: {
|
|
84
|
-
new (locales?: LocalesValues, options?: Intl.ListFormatOptions | undefined): Intl.ListFormat;
|
|
85
|
-
new (options?: (Intl.ListFormatOptions & {
|
|
86
|
-
locale?: LocalesValues;
|
|
87
|
-
}) | undefined): Intl.ListFormat;
|
|
88
|
-
};
|
|
89
|
-
supportedValuesOf: typeof Intl.supportedValuesOf;
|
|
90
|
-
readonly Segmenter: {
|
|
91
|
-
new (locales?: LocalesValues, options?: Intl.SegmenterOptions | undefined): Intl.Segmenter;
|
|
92
|
-
new (options?: (Intl.SegmenterOptions & {
|
|
93
|
-
locale?: LocalesValues;
|
|
94
|
-
}) | undefined): Intl.Segmenter;
|
|
95
|
-
};
|
|
96
|
-
}>;
|
|
39
|
+
export declare const useIntl: (locale?: LocalesValues) => import('vue').ComputedRef<WrappedIntl>;
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
* // "1, 2 und 3"
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare const useList: () => import('vue').ComputedRef<(values: (string | number)[], options?: (
|
|
19
|
+
export declare const useList: () => import('vue').ComputedRef<(values: (string | number)[], options?: ({
|
|
20
|
+
localeMatcher?: "lookup" | "best fit";
|
|
21
|
+
type?: "conjunction" | "disjunction" | "unit";
|
|
22
|
+
style?: "long" | "short" | "narrow";
|
|
23
|
+
} & {
|
|
20
24
|
locale?: import('intlayer').LocalesValues;
|
|
21
25
|
}) | undefined) => string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-intlayer",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Vue applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"typecheck": "vue-tsc --noEmit --project tsconfig.types.json"
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"@intlayer/api": "8.4.
|
|
98
|
-
"@intlayer/config": "8.4.
|
|
99
|
-
"@intlayer/core": "8.4.
|
|
100
|
-
"@intlayer/editor": "8.4.
|
|
101
|
-
"@intlayer/types": "8.4.
|
|
97
|
+
"@intlayer/api": "8.4.1",
|
|
98
|
+
"@intlayer/config": "8.4.1",
|
|
99
|
+
"@intlayer/core": "8.4.1",
|
|
100
|
+
"@intlayer/editor": "8.4.1",
|
|
101
|
+
"@intlayer/types": "8.4.1"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@types/node": "25.5.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"vue-tsc": "3.1.5"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|
|
120
|
-
"intlayer": "8.4.
|
|
120
|
+
"intlayer": "8.4.1",
|
|
121
121
|
"vue": ">=3.0.0"
|
|
122
122
|
},
|
|
123
123
|
"peerDependenciesMeta": {
|