use-intl 4.0.0-beta-5ec7f45 → 4.0.0-beta-67507cc
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.
- package/dist/types/core/DateTimeFormatOptions.d.ts +1 -1
- package/dist/types/core/Formats.d.ts +2 -2
- package/dist/types/core/IntlConfig.d.ts +11 -10
- package/dist/types/core/IntlError.d.ts +1 -1
- package/dist/types/core/convertFormatsToIntlMessageFormat.d.ts +2 -2
- package/dist/types/core/createBaseTranslator.d.ts +7 -7
- package/dist/types/core/createFormatter.d.ts +8 -8
- package/dist/types/core/createTranslator.d.ts +9 -9
- package/dist/types/core/createTranslatorImpl.d.ts +7 -7
- package/dist/types/core/defaults.d.ts +1 -1
- package/dist/types/core/hasLocale.d.ts +1 -1
- package/dist/types/core/index.d.ts +20 -20
- package/dist/types/core/initializeConfig.d.ts +4 -4
- package/dist/types/core/types.d.ts +3 -0
- package/dist/types/core/validateMessages.d.ts +2 -2
- package/dist/types/core.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/react/IntlContext.d.ts +2 -2
- package/dist/types/react/IntlProvider.d.ts +1 -1
- package/dist/types/react/index.d.ts +7 -7
- package/dist/types/react/useFormatter.d.ts +1 -1
- package/dist/types/react/useIntlContext.d.ts +1 -1
- package/dist/types/react/useLocale.d.ts +1 -1
- package/dist/types/react/useMessages.d.ts +1 -1
- package/dist/types/react/useTimeZone.d.ts +1 -1
- package/dist/types/react/useTranslations.d.ts +3 -3
- package/dist/types/react/useTranslationsImpl.d.ts +5 -5
- package/dist/types/react.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type DateTimeFormatOptions from './DateTimeFormatOptions.
|
|
2
|
-
import type NumberFormatOptions from './NumberFormatOptions.
|
|
1
|
+
import type DateTimeFormatOptions from './DateTimeFormatOptions.js';
|
|
2
|
+
import type NumberFormatOptions from './NumberFormatOptions.js';
|
|
3
3
|
type Formats = {
|
|
4
4
|
number?: Record<string, NumberFormatOptions>;
|
|
5
5
|
dateTime?: Record<string, DateTimeFormatOptions>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
import type
|
|
5
|
-
import type
|
|
1
|
+
import type { Locale, Messages } from './AppConfig.js';
|
|
2
|
+
import type Formats from './Formats.js';
|
|
3
|
+
import type IntlError from './IntlError.js';
|
|
4
|
+
import type TimeZone from './TimeZone.js';
|
|
5
|
+
import type { DeepPartial } from './types.js';
|
|
6
6
|
/**
|
|
7
7
|
* Should be used for entry points that configure the library.
|
|
8
8
|
*/
|
|
9
|
-
type IntlConfig
|
|
9
|
+
type IntlConfig = {
|
|
10
10
|
/** A valid Unicode locale tag (e.g. "en" or "en-GB"). */
|
|
11
11
|
locale: Locale;
|
|
12
12
|
/** Global formats can be provided to achieve consistent
|
|
@@ -38,14 +38,15 @@ type IntlConfig<Messages extends AbstractIntlMessages = AbstractIntlMessages> =
|
|
|
38
38
|
*/
|
|
39
39
|
now?: Date;
|
|
40
40
|
/** All messages that will be available. */
|
|
41
|
-
messages?: Messages
|
|
41
|
+
messages?: DeepPartial<Messages>;
|
|
42
42
|
};
|
|
43
|
+
/**
|
|
43
44
|
/**
|
|
44
45
|
* A stricter set of the configuration that should be used internally
|
|
45
46
|
* once defaults are assigned to `IntlConfiguration`.
|
|
46
47
|
*/
|
|
47
|
-
export type InitializedIntlConfig
|
|
48
|
-
onError: NonNullable<IntlConfig
|
|
49
|
-
getMessageFallback: NonNullable<IntlConfig
|
|
48
|
+
export type InitializedIntlConfig = IntlConfig & {
|
|
49
|
+
onError: NonNullable<IntlConfig['onError']>;
|
|
50
|
+
getMessageFallback: NonNullable<IntlConfig['getMessageFallback']>;
|
|
50
51
|
};
|
|
51
52
|
export default IntlConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Formats as IntlFormats } from 'intl-messageformat';
|
|
2
|
-
import type Formats from './Formats.
|
|
3
|
-
import type TimeZone from './TimeZone.
|
|
2
|
+
import type Formats from './Formats.js';
|
|
3
|
+
import type TimeZone from './TimeZone.js';
|
|
4
4
|
/**
|
|
5
5
|
* `intl-messageformat` uses separate keys for `date` and `time`, but there's
|
|
6
6
|
* only one native API: `Intl.DateTimeFormat`. Additionally you might want to
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type AbstractIntlMessages from './AbstractIntlMessages.
|
|
3
|
-
import type Formats from './Formats.
|
|
4
|
-
import type { InitializedIntlConfig } from './IntlConfig.
|
|
5
|
-
import IntlError from './IntlError.
|
|
6
|
-
import type { MessageKeys, NestedKeyOf, NestedValueOf } from './MessageKeys.
|
|
7
|
-
import type { MarkupTranslationValues, RichTranslationValues, TranslationValues } from './TranslationValues.
|
|
8
|
-
import { type Formatters, type IntlCache } from './formatters.
|
|
2
|
+
import type AbstractIntlMessages from './AbstractIntlMessages.js';
|
|
3
|
+
import type Formats from './Formats.js';
|
|
4
|
+
import type { InitializedIntlConfig } from './IntlConfig.js';
|
|
5
|
+
import IntlError from './IntlError.js';
|
|
6
|
+
import type { MessageKeys, NestedKeyOf, NestedValueOf } from './MessageKeys.js';
|
|
7
|
+
import type { MarkupTranslationValues, RichTranslationValues, TranslationValues } from './TranslationValues.js';
|
|
8
|
+
import { type Formatters, type IntlCache } from './formatters.js';
|
|
9
9
|
export type CreateBaseTranslatorProps<Messages> = InitializedIntlConfig & {
|
|
10
10
|
cache: IntlCache;
|
|
11
11
|
formatters: Formatters;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import type { FormatNames, Locale } from './AppConfig.
|
|
3
|
-
import type DateTimeFormatOptions from './DateTimeFormatOptions.
|
|
4
|
-
import type Formats from './Formats.
|
|
5
|
-
import IntlError from './IntlError.
|
|
6
|
-
import type NumberFormatOptions from './NumberFormatOptions.
|
|
7
|
-
import type RelativeTimeFormatOptions from './RelativeTimeFormatOptions.
|
|
8
|
-
import type TimeZone from './TimeZone.
|
|
9
|
-
import { type Formatters, type IntlCache } from './formatters.
|
|
2
|
+
import type { FormatNames, Locale } from './AppConfig.js';
|
|
3
|
+
import type DateTimeFormatOptions from './DateTimeFormatOptions.js';
|
|
4
|
+
import type Formats from './Formats.js';
|
|
5
|
+
import IntlError from './IntlError.js';
|
|
6
|
+
import type NumberFormatOptions from './NumberFormatOptions.js';
|
|
7
|
+
import type RelativeTimeFormatOptions from './RelativeTimeFormatOptions.js';
|
|
8
|
+
import type TimeZone from './TimeZone.js';
|
|
9
|
+
import { type Formatters, type IntlCache } from './formatters.js';
|
|
10
10
|
type Props = {
|
|
11
11
|
locale: Locale;
|
|
12
12
|
timeZone?: TimeZone;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type Formats from './Formats.
|
|
3
|
-
import type ICUArgs from './ICUArgs.
|
|
4
|
-
import type ICUTags from './ICUTags.
|
|
5
|
-
import type IntlConfig from './IntlConfig.
|
|
6
|
-
import type { MessageKeys, NamespaceKeys, NestedKeyOf, NestedValueOf } from './MessageKeys.
|
|
7
|
-
import type { MarkupTagsFunction, RichTagsFunction, TranslationValues } from './TranslationValues.
|
|
8
|
-
import { type Formatters, type IntlCache } from './formatters.
|
|
9
|
-
import type { Prettify } from './types.
|
|
2
|
+
import type Formats from './Formats.js';
|
|
3
|
+
import type ICUArgs from './ICUArgs.js';
|
|
4
|
+
import type ICUTags from './ICUTags.js';
|
|
5
|
+
import type IntlConfig from './IntlConfig.js';
|
|
6
|
+
import type { MessageKeys, NamespaceKeys, NestedKeyOf, NestedValueOf } from './MessageKeys.js';
|
|
7
|
+
import type { MarkupTagsFunction, RichTagsFunction, TranslationValues } from './TranslationValues.js';
|
|
8
|
+
import { type Formatters, type IntlCache } from './formatters.js';
|
|
9
|
+
import type { Prettify } from './types.js';
|
|
10
10
|
type ICUArgsWithTags<MessageString extends string, TagsFn extends RichTagsFunction | MarkupTagsFunction = never> = ICUArgs<MessageString, {
|
|
11
11
|
ICUArgument: string;
|
|
12
12
|
ICUNumberArgument: number;
|
|
@@ -38,7 +38,7 @@ type NamespacedValue<TranslatorMessages extends IntlMessages, Namespace extends
|
|
|
38
38
|
* The namespace can also indicate nesting by using a dot
|
|
39
39
|
* (e.g. `namespace.Component`).
|
|
40
40
|
*/
|
|
41
|
-
export default function createTranslator<const TranslatorMessages extends IntlMessages, const Namespace extends NamespaceKeys<TranslatorMessages, NestedKeyOf<TranslatorMessages>> = never>({ _cache, _formatters, getMessageFallback, messages, namespace, onError, ...rest }: Omit<IntlConfig
|
|
41
|
+
export default function createTranslator<const TranslatorMessages extends IntlMessages, const Namespace extends NamespaceKeys<TranslatorMessages, NestedKeyOf<TranslatorMessages>> = never>({ _cache, _formatters, getMessageFallback, messages, namespace, onError, ...rest }: Omit<IntlConfig, 'messages'> & {
|
|
42
42
|
messages?: TranslatorMessages;
|
|
43
43
|
namespace?: Namespace;
|
|
44
44
|
/** @private */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type AbstractIntlMessages from './AbstractIntlMessages.
|
|
2
|
-
import type { InitializedIntlConfig } from './IntlConfig.
|
|
3
|
-
import type { NestedKeyOf } from './MessageKeys.
|
|
4
|
-
import type { Formatters, IntlCache } from './formatters.
|
|
1
|
+
import type AbstractIntlMessages from './AbstractIntlMessages.js';
|
|
2
|
+
import type { InitializedIntlConfig } from './IntlConfig.js';
|
|
3
|
+
import type { NestedKeyOf } from './MessageKeys.js';
|
|
4
|
+
import type { Formatters, IntlCache } from './formatters.js';
|
|
5
5
|
export type CreateTranslatorImplProps<Messages> = Omit<InitializedIntlConfig, 'messages'> & {
|
|
6
6
|
namespace: string;
|
|
7
7
|
messages: Messages;
|
|
@@ -9,9 +9,9 @@ export type CreateTranslatorImplProps<Messages> = Omit<InitializedIntlConfig, 'm
|
|
|
9
9
|
cache: IntlCache;
|
|
10
10
|
};
|
|
11
11
|
export default function createTranslatorImpl<Messages extends AbstractIntlMessages, NestedKey extends NestedKeyOf<Messages>>({ messages, namespace, ...rest }: CreateTranslatorImplProps<Messages>, namespacePrefix: string): {
|
|
12
|
-
<TargetKey extends import("./MessageKeys.
|
|
13
|
-
rich: (key: string, values?: import("./TranslationValues.
|
|
14
|
-
markup(key: Parameters<(key: string, values?: import("./TranslationValues.
|
|
12
|
+
<TargetKey extends import("./MessageKeys.js").MessageKeys<import("./MessageKeys.js").NestedValueOf<Messages, NestedKey>, NestedKeyOf<import("./MessageKeys.js").NestedValueOf<Messages, NestedKey>>>>(key: TargetKey, values?: import("./TranslationValues.js").TranslationValues, formats?: import("./Formats.js").default): string;
|
|
13
|
+
rich: (key: string, values?: import("./TranslationValues.js").RichTranslationValues, formats?: import("./Formats.js").default) => import("react").ReactNode;
|
|
14
|
+
markup(key: Parameters<(key: string, values?: import("./TranslationValues.js").RichTranslationValues, formats?: import("./Formats.js").default) => import("react").ReactNode>[0], values: import("./TranslationValues.js").MarkupTranslationValues, formats?: Parameters<(key: string, values?: import("./TranslationValues.js").RichTranslationValues, formats?: import("./Formats.js").default) => import("react").ReactNode>[2]): string;
|
|
15
15
|
raw(key: string): any;
|
|
16
16
|
has(key: string): boolean;
|
|
17
17
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export type { default as AbstractIntlMessages } from './AbstractIntlMessages.
|
|
2
|
-
export type { TranslationValues, RichTranslationValues, MarkupTranslationValues, RichTagsFunction, MarkupTagsFunction } from './TranslationValues.
|
|
3
|
-
export type { default as Formats } from './Formats.
|
|
4
|
-
export type { default as IntlConfig } from './IntlConfig.
|
|
5
|
-
export type { default as DateTimeFormatOptions } from './DateTimeFormatOptions.
|
|
6
|
-
export type { default as NumberFormatOptions } from './NumberFormatOptions.
|
|
7
|
-
export { default as IntlError } from './IntlError.
|
|
8
|
-
export { default as IntlErrorCode } from './IntlErrorCode.
|
|
9
|
-
export { default as createTranslator } from './createTranslator.
|
|
10
|
-
export { default as createFormatter } from './createFormatter.
|
|
11
|
-
export { default as initializeConfig } from './initializeConfig.
|
|
12
|
-
export type { MessageKeys, NamespaceKeys, NestedKeyOf, NestedValueOf } from './MessageKeys.
|
|
13
|
-
export { createIntlFormatters as _createIntlFormatters } from './formatters.
|
|
14
|
-
export { createCache as _createCache } from './formatters.
|
|
15
|
-
export type { default as AppConfig, Locale, Messages } from './AppConfig.
|
|
16
|
-
export { default as hasLocale } from './hasLocale.
|
|
17
|
-
export type { default as RelativeTimeFormatOptions } from './RelativeTimeFormatOptions.
|
|
18
|
-
export type { default as Timezone } from './TimeZone.
|
|
19
|
-
export type { default as ICUArgs } from './ICUArgs.
|
|
20
|
-
export type { default as ICUTags } from './ICUTags.
|
|
1
|
+
export type { default as AbstractIntlMessages } from './AbstractIntlMessages.js';
|
|
2
|
+
export type { TranslationValues, RichTranslationValues, MarkupTranslationValues, RichTagsFunction, MarkupTagsFunction } from './TranslationValues.js';
|
|
3
|
+
export type { default as Formats } from './Formats.js';
|
|
4
|
+
export type { default as IntlConfig } from './IntlConfig.js';
|
|
5
|
+
export type { default as DateTimeFormatOptions } from './DateTimeFormatOptions.js';
|
|
6
|
+
export type { default as NumberFormatOptions } from './NumberFormatOptions.js';
|
|
7
|
+
export { default as IntlError } from './IntlError.js';
|
|
8
|
+
export { default as IntlErrorCode } from './IntlErrorCode.js';
|
|
9
|
+
export { default as createTranslator } from './createTranslator.js';
|
|
10
|
+
export { default as createFormatter } from './createFormatter.js';
|
|
11
|
+
export { default as initializeConfig } from './initializeConfig.js';
|
|
12
|
+
export type { MessageKeys, NamespaceKeys, NestedKeyOf, NestedValueOf } from './MessageKeys.js';
|
|
13
|
+
export { createIntlFormatters as _createIntlFormatters } from './formatters.js';
|
|
14
|
+
export { createCache as _createCache } from './formatters.js';
|
|
15
|
+
export type { default as AppConfig, Locale, Messages } from './AppConfig.js';
|
|
16
|
+
export { default as hasLocale } from './hasLocale.js';
|
|
17
|
+
export type { default as RelativeTimeFormatOptions } from './RelativeTimeFormatOptions.js';
|
|
18
|
+
export type { default as Timezone } from './TimeZone.js';
|
|
19
|
+
export type { default as ICUArgs } from './ICUArgs.js';
|
|
20
|
+
export type { default as ICUTags } from './ICUTags.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type IntlConfig from './IntlConfig.
|
|
1
|
+
import type IntlConfig from './IntlConfig.js';
|
|
2
2
|
/**
|
|
3
3
|
* Enhances the incoming props with defaults.
|
|
4
4
|
*/
|
|
5
5
|
export default function initializeConfig<Props extends IntlConfig>({ getMessageFallback, messages, onError, ...rest }: Props): Omit<Props, "onError" | "getMessageFallback" | "messages"> & {
|
|
6
|
-
messages: import("./
|
|
7
|
-
onError: (error: import("./IntlError.
|
|
6
|
+
messages: import("./types.js").DeepPartial<Record<string, any>> | undefined;
|
|
7
|
+
onError: (error: import("./IntlError.js").default) => void;
|
|
8
8
|
getMessageFallback: (info: {
|
|
9
|
-
error: import("./IntlError.
|
|
9
|
+
error: import("./IntlError.js").default;
|
|
10
10
|
key: string;
|
|
11
11
|
namespace?: string;
|
|
12
12
|
}) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type AbstractIntlMessages from './AbstractIntlMessages.
|
|
2
|
-
import IntlError from './IntlError.
|
|
1
|
+
import type AbstractIntlMessages from './AbstractIntlMessages.js';
|
|
2
|
+
import IntlError from './IntlError.js';
|
|
3
3
|
export default function validateMessages(messages: AbstractIntlMessages, onError: (error: IntlError) => void): void;
|
package/dist/types/core.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './core/index.
|
|
1
|
+
export * from './core/index.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './core.
|
|
2
|
-
export * from './react.
|
|
1
|
+
export * from './core.js';
|
|
2
|
+
export * from './react.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InitializedIntlConfig } from '../core/IntlConfig.
|
|
2
|
-
import type { Formatters, IntlCache } from '../core/formatters.
|
|
1
|
+
import type { InitializedIntlConfig } from '../core/IntlConfig.js';
|
|
2
|
+
import type { Formatters, IntlCache } from '../core/formatters.js';
|
|
3
3
|
export type IntlContextValue = InitializedIntlConfig & {
|
|
4
4
|
formatters: Formatters;
|
|
5
5
|
cache: IntlCache;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { default as IntlProvider } from './IntlProvider.
|
|
2
|
-
export { default as useTranslations } from './useTranslations.
|
|
3
|
-
export { default as useLocale } from './useLocale.
|
|
4
|
-
export { default as useNow } from './useNow.
|
|
5
|
-
export { default as useTimeZone } from './useTimeZone.
|
|
6
|
-
export { default as useMessages } from './useMessages.
|
|
7
|
-
export { default as useFormatter } from './useFormatter.
|
|
1
|
+
export { default as IntlProvider } from './IntlProvider.js';
|
|
2
|
+
export { default as useTranslations } from './useTranslations.js';
|
|
3
|
+
export { default as useLocale } from './useLocale.js';
|
|
4
|
+
export { default as useNow } from './useNow.js';
|
|
5
|
+
export { default as useTimeZone } from './useTimeZone.js';
|
|
6
|
+
export { default as useMessages } from './useMessages.js';
|
|
7
|
+
export { default as useFormatter } from './useFormatter.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import createFormatter from '../core/createFormatter.
|
|
1
|
+
import createFormatter from '../core/createFormatter.js';
|
|
2
2
|
export default function useFormatter(): ReturnType<typeof createFormatter>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { type IntlContextValue } from './IntlContext.
|
|
1
|
+
import { type IntlContextValue } from './IntlContext.js';
|
|
2
2
|
export default function useIntlContext(): IntlContextValue;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Locale } from '../core.
|
|
1
|
+
import type { Locale } from '../core.js';
|
|
2
2
|
export default function useLocale(): Locale;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Messages } from '../core/AppConfig.
|
|
1
|
+
import type { Messages } from '../core/AppConfig.js';
|
|
2
2
|
export default function useMessages(): Messages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function useTimeZone(): import("../core.
|
|
1
|
+
export default function useTimeZone(): import("../core.js").Timezone | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Messages } from '../core/AppConfig.
|
|
2
|
-
import type { NamespaceKeys, NestedKeyOf } from '../core/MessageKeys.
|
|
3
|
-
import type createTranslator from '../core/createTranslator.
|
|
1
|
+
import type { Messages } from '../core/AppConfig.js';
|
|
2
|
+
import type { NamespaceKeys, NestedKeyOf } from '../core/MessageKeys.js';
|
|
3
|
+
import type createTranslator from '../core/createTranslator.js';
|
|
4
4
|
/**
|
|
5
5
|
* Translates messages from the given namespace by using the ICU syntax.
|
|
6
6
|
* See https://formatjs.io/docs/core-concepts/icu-syntax.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type AbstractIntlMessages from '../core/AbstractIntlMessages.
|
|
2
|
-
import type { NestedKeyOf } from '../core/MessageKeys.
|
|
1
|
+
import type AbstractIntlMessages from '../core/AbstractIntlMessages.js';
|
|
2
|
+
import type { NestedKeyOf } from '../core/MessageKeys.js';
|
|
3
3
|
export default function useTranslationsImpl<Messages extends AbstractIntlMessages, NestedKey extends NestedKeyOf<Messages>>(allMessagesPrefixed: Messages, namespacePrefixed: NestedKey, namespacePrefix: string): {
|
|
4
|
-
<TargetKey extends unknown>(key: TargetKey, values?: import("../core.
|
|
5
|
-
rich: (key: string, values?: import("../core.
|
|
6
|
-
markup(key: Parameters<(key: string, values?: import("../core.
|
|
4
|
+
<TargetKey extends unknown>(key: TargetKey, values?: import("../core.js").TranslationValues, formats?: import("../core.js").Formats): string;
|
|
5
|
+
rich: (key: string, values?: import("../core.js").RichTranslationValues, formats?: import("../core.js").Formats) => import("react").ReactNode;
|
|
6
|
+
markup(key: Parameters<(key: string, values?: import("../core.js").RichTranslationValues, formats?: import("../core.js").Formats) => import("react").ReactNode>[0], values: import("../core.js").MarkupTranslationValues, formats?: Parameters<(key: string, values?: import("../core.js").RichTranslationValues, formats?: import("../core.js").Formats) => import("react").ReactNode>[2]): string;
|
|
7
7
|
raw(key: string): any;
|
|
8
8
|
has(key: string): boolean;
|
|
9
9
|
};
|
package/dist/types/react.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './react/index.
|
|
1
|
+
export * from './react/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "use-intl",
|
|
3
|
-
"version": "4.0.0-beta-
|
|
3
|
+
"version": "4.0.0-beta-67507cc",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"author": "Jan Amann <jan@amann.work>",
|
|
6
6
|
"description": "Internationalization (i18n) for React",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"react": "^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "9220b68c2e83f70b1d45ecad3f672ecf2cde0d57"
|
|
68
68
|
}
|