svelte-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 { type WrappedIntl } from '@intlayer/core/formatters';
1
2
  import type { LocalesValues } from '@intlayer/types/module_augmentation';
2
3
  /**
3
4
  * Svelte hook that provides a locale-bound `Intl` object.
@@ -21,62 +22,4 @@ import type { LocalesValues } from '@intlayer/types/module_augmentation';
21
22
  * </script>
22
23
  * ```
23
24
  */
24
- export declare const useIntl: (locale?: LocalesValues) => import("svelte/store").Readable<{
25
- Collator: {
26
- new (locales?: LocalesValues, options?: Intl.CollatorOptions | undefined): Intl.Collator;
27
- new (options?: (Intl.CollatorOptions & {
28
- locale?: LocalesValues;
29
- }) | undefined): Intl.Collator;
30
- };
31
- NumberFormat: {
32
- new (locales?: LocalesValues, options?: Intl.NumberFormatOptions | undefined): Intl.NumberFormat;
33
- new (options?: (Intl.NumberFormatOptions & {
34
- locale?: LocalesValues;
35
- }) | undefined): Intl.NumberFormat;
36
- };
37
- DateTimeFormat: {
38
- new (locales?: LocalesValues, options?: Intl.DateTimeFormatOptions | undefined): Intl.DateTimeFormat;
39
- new (options?: (Intl.DateTimeFormatOptions & {
40
- locale?: LocalesValues;
41
- }) | undefined): Intl.DateTimeFormat;
42
- };
43
- getCanonicalLocales: typeof Intl.getCanonicalLocales;
44
- readonly PluralRules: {
45
- new (locales?: LocalesValues, options?: Intl.PluralRulesOptions | undefined): Intl.PluralRules;
46
- new (options?: (Intl.PluralRulesOptions & {
47
- locale?: LocalesValues;
48
- }) | undefined): Intl.PluralRules;
49
- };
50
- readonly RelativeTimeFormat: {
51
- new (locales?: LocalesValues, options?: Intl.RelativeTimeFormatOptions | undefined): Intl.RelativeTimeFormat;
52
- new (options?: (Intl.RelativeTimeFormatOptions & {
53
- locale?: LocalesValues;
54
- }) | undefined): Intl.RelativeTimeFormat;
55
- };
56
- readonly Locale: {
57
- new (locales?: LocalesValues, options?: Intl.LocaleOptions | undefined): Intl.Locale;
58
- new (options?: (Intl.LocaleOptions & {
59
- locale?: LocalesValues;
60
- }) | undefined): Intl.Locale;
61
- };
62
- readonly DisplayNames: {
63
- prototype: Intl.DisplayNames;
64
- new (locales: Intl.LocalesArgument, options: Intl.DisplayNamesOptions): Intl.DisplayNames;
65
- supportedLocalesOf(locales?: Intl.LocalesArgument, options?: {
66
- localeMatcher?: Intl.RelativeTimeFormatLocaleMatcher;
67
- }): Intl.UnicodeBCP47LocaleIdentifier[];
68
- };
69
- readonly ListFormat: {
70
- new (locales?: LocalesValues, options?: Intl.ListFormatOptions | undefined): Intl.ListFormat;
71
- new (options?: (Intl.ListFormatOptions & {
72
- locale?: LocalesValues;
73
- }) | undefined): Intl.ListFormat;
74
- };
75
- supportedValuesOf: typeof Intl.supportedValuesOf;
76
- readonly Segmenter: {
77
- new (locales?: LocalesValues, options?: Intl.SegmenterOptions | undefined): Intl.Segmenter;
78
- new (options?: (Intl.SegmenterOptions & {
79
- locale?: LocalesValues;
80
- }) | undefined): Intl.Segmenter;
81
- };
82
- }>;
25
+ export declare const useIntl: (locale?: LocalesValues) => import("svelte/store").Readable<WrappedIntl>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-intlayer",
3
- "version": "8.4.0",
3
+ "version": "8.4.1",
4
4
  "description": "Easily internationalize i18n your Svelte applications with type-safe multilingual content management.",
5
5
  "keywords": [
6
6
  "intlayer",
@@ -72,11 +72,11 @@
72
72
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
73
73
  },
74
74
  "dependencies": {
75
- "@intlayer/api": "8.4.0",
76
- "@intlayer/config": "8.4.0",
77
- "@intlayer/core": "8.4.0",
78
- "@intlayer/editor": "8.4.0",
79
- "@intlayer/types": "8.4.0"
75
+ "@intlayer/api": "8.4.1",
76
+ "@intlayer/config": "8.4.1",
77
+ "@intlayer/core": "8.4.1",
78
+ "@intlayer/editor": "8.4.1",
79
+ "@intlayer/types": "8.4.1"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@sveltejs/adapter-auto": "7.0.1",