use-intl 2.17.0 → 2.17.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.
- package/dist/core/AbstractIntlMessages.d.mts +10 -0
- package/dist/core/AbstractIntlMessages.d.ts +10 -9
- package/dist/core/AbstractIntlMessages.js +2 -0
- package/dist/core/AbstractIntlMessages.js.map +1 -0
- package/dist/core/AbstractIntlMessages.mjs +1 -0
- package/dist/core/AbstractIntlMessages.mjs.map +1 -0
- package/dist/core/DateTimeFormatOptions.d.mts +75 -0
- package/dist/core/DateTimeFormatOptions.d.ts +75 -73
- package/dist/core/DateTimeFormatOptions.js +2 -0
- package/dist/core/DateTimeFormatOptions.js.map +1 -0
- package/dist/core/DateTimeFormatOptions.mjs +1 -0
- package/dist/core/DateTimeFormatOptions.mjs.map +1 -0
- package/dist/core/Formats.d.mts +11 -0
- package/dist/core/Formats.d.ts +11 -8
- package/dist/core/Formats.js +2 -0
- package/dist/core/Formats.js.map +1 -0
- package/dist/core/Formats.mjs +1 -0
- package/dist/core/Formats.mjs.map +1 -0
- package/dist/core/IntlConfig.d.mts +60 -0
- package/dist/core/IntlConfig.d.ts +60 -54
- package/dist/core/IntlConfig.js +2 -0
- package/dist/core/IntlConfig.js.map +1 -0
- package/dist/core/IntlConfig.mjs +1 -0
- package/dist/core/IntlConfig.mjs.map +1 -0
- package/dist/core/IntlError.d.mts +15 -0
- package/dist/core/IntlError.d.ts +15 -13
- package/dist/core/IntlError.js +2 -0
- package/dist/core/IntlError.js.map +1 -0
- package/dist/core/IntlError.mjs +2 -0
- package/dist/core/IntlError.mjs.map +1 -0
- package/dist/core/NumberFormatOptions.d.mts +2 -0
- package/dist/core/NumberFormatOptions.d.ts +2 -2
- package/dist/core/NumberFormatOptions.js +2 -0
- package/dist/core/NumberFormatOptions.js.map +1 -0
- package/dist/core/NumberFormatOptions.mjs +2 -0
- package/dist/core/NumberFormatOptions.mjs.map +1 -0
- package/dist/core/TimeZone.d.mts +3 -0
- package/dist/core/TimeZone.d.ts +3 -2
- package/dist/core/TimeZone.js +2 -0
- package/dist/core/TimeZone.js.map +1 -0
- package/dist/core/TimeZone.mjs +1 -0
- package/dist/core/TimeZone.mjs.map +1 -0
- package/dist/core/TranslationValues.d.mts +7 -0
- package/dist/core/TranslationValues.d.ts +7 -5
- package/dist/core/TranslationValues.js +2 -0
- package/dist/core/TranslationValues.js.map +1 -0
- package/dist/core/TranslationValues.mjs +1 -0
- package/dist/core/TranslationValues.mjs.map +1 -0
- package/dist/core/convertFormatsToIntlMessageFormat.d.mts +16 -0
- package/dist/core/convertFormatsToIntlMessageFormat.d.ts +16 -11
- package/dist/core/convertFormatsToIntlMessageFormat.js +2 -0
- package/dist/core/convertFormatsToIntlMessageFormat.js.map +1 -0
- package/dist/core/convertFormatsToIntlMessageFormat.mjs +2 -0
- package/dist/core/convertFormatsToIntlMessageFormat.mjs.map +1 -0
- package/dist/core/createBaseTranslator.d.mts +32 -0
- package/dist/core/createBaseTranslator.d.ts +32 -26
- package/dist/core/createBaseTranslator.js +2 -0
- package/dist/core/createBaseTranslator.js.map +1 -0
- package/dist/core/createBaseTranslator.mjs +2 -0
- package/dist/core/createBaseTranslator.mjs.map +1 -0
- package/dist/core/createFormatter.d.mts +21 -0
- package/dist/core/createFormatter.d.ts +21 -19
- package/dist/core/createFormatter.js +2 -0
- package/dist/core/createFormatter.js.map +1 -0
- package/dist/core/createFormatter.mjs +2 -0
- package/dist/core/createFormatter.mjs.map +1 -0
- package/dist/core/createIntl.d.mts +15 -0
- package/dist/core/createIntl.d.ts +15 -7
- package/dist/core/createIntl.js +2 -0
- package/dist/core/createIntl.js.map +1 -0
- package/dist/core/createIntl.mjs +2 -0
- package/dist/core/createIntl.mjs.map +1 -0
- package/dist/core/createTranslator.d.mts +57 -0
- package/dist/core/createTranslator.d.ts +57 -48
- package/dist/core/createTranslator.js +2 -0
- package/dist/core/createTranslator.js.map +1 -0
- package/dist/core/createTranslator.mjs +2 -0
- package/dist/core/createTranslator.mjs.map +1 -0
- package/dist/core/createTranslatorImpl.d.mts +25 -0
- package/dist/core/createTranslatorImpl.d.ts +25 -14
- package/dist/core/createTranslatorImpl.js +2 -0
- package/dist/core/createTranslatorImpl.js.map +1 -0
- package/dist/core/createTranslatorImpl.mjs +2 -0
- package/dist/core/createTranslatorImpl.mjs.map +1 -0
- package/dist/core/defaults.d.mts +14 -0
- package/dist/core/defaults.d.ts +14 -11
- package/dist/core/defaults.js +2 -0
- package/dist/core/defaults.js.map +1 -0
- package/dist/core/defaults.mjs +2 -0
- package/dist/core/defaults.mjs.map +1 -0
- package/dist/core/index.d.mts +17 -0
- package/dist/core/index.d.ts +17 -9
- package/dist/core/index.js +2 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/index.mjs +2 -0
- package/dist/core/index.mjs.map +1 -0
- package/dist/core/resolveNamespace.d.mts +7 -0
- package/dist/core/resolveNamespace.d.ts +7 -5
- package/dist/core/resolveNamespace.js +2 -0
- package/dist/core/resolveNamespace.js.map +1 -0
- package/dist/core/resolveNamespace.mjs +2 -0
- package/dist/core/resolveNamespace.mjs.map +1 -0
- package/dist/core/utils/MessageKeys.d.mts +7 -0
- package/dist/core/utils/MessageKeys.d.ts +7 -5
- package/dist/core/utils/MessageKeys.js +2 -0
- package/dist/core/utils/MessageKeys.js.map +1 -0
- package/dist/core/utils/MessageKeys.mjs +1 -0
- package/dist/core/utils/MessageKeys.mjs.map +1 -0
- package/dist/core/utils/NamespaceKeys.d.mts +7 -0
- package/dist/core/utils/NamespaceKeys.d.ts +7 -5
- package/dist/core/utils/NamespaceKeys.js +2 -0
- package/dist/core/utils/NamespaceKeys.js.map +1 -0
- package/dist/core/utils/NamespaceKeys.mjs +1 -0
- package/dist/core/utils/NamespaceKeys.mjs.map +1 -0
- package/dist/core/utils/NestedKeyOf.d.mts +5 -0
- package/dist/core/utils/NestedKeyOf.d.ts +5 -4
- package/dist/core/utils/NestedKeyOf.js +2 -0
- package/dist/core/utils/NestedKeyOf.js.map +1 -0
- package/dist/core/utils/NestedKeyOf.mjs +1 -0
- package/dist/core/utils/NestedKeyOf.mjs.map +1 -0
- package/dist/core/utils/NestedValueOf.d.mts +3 -0
- package/dist/core/utils/NestedValueOf.d.ts +3 -2
- package/dist/core/utils/NestedValueOf.js +2 -0
- package/dist/core/utils/NestedValueOf.js.map +1 -0
- package/dist/core/utils/NestedValueOf.mjs +1 -0
- package/dist/core/utils/NestedValueOf.mjs.map +1 -0
- package/dist/core/validateMessages.d.mts +6 -0
- package/dist/core/validateMessages.d.ts +6 -3
- package/dist/core/validateMessages.js +34 -0
- package/dist/core/validateMessages.js.map +1 -0
- package/dist/core/validateMessages.mjs +34 -0
- package/dist/core/validateMessages.mjs.map +1 -0
- package/dist/index.d.mts +25 -0
- package/dist/index.d.ts +25 -2
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/react/IntlContext.d.mts +13 -0
- package/dist/react/IntlContext.d.ts +13 -4
- package/dist/react/IntlContext.js +2 -0
- package/dist/react/IntlContext.js.map +1 -0
- package/dist/react/IntlContext.mjs +2 -0
- package/dist/react/IntlContext.mjs.map +1 -0
- package/dist/react/IntlProvider.d.mts +16 -0
- package/dist/react/IntlProvider.d.ts +16 -7
- package/dist/react/IntlProvider.js +2 -0
- package/dist/react/IntlProvider.js.map +1 -0
- package/dist/react/IntlProvider.mjs +2 -0
- package/dist/react/IntlProvider.mjs.map +1 -0
- package/dist/react/getInitializedConfig.d.mts +24 -0
- package/dist/react/getInitializedConfig.d.ts +24 -13
- package/dist/react/getInitializedConfig.js +2 -0
- package/dist/react/getInitializedConfig.js.map +1 -0
- package/dist/react/getInitializedConfig.mjs +2 -0
- package/dist/react/getInitializedConfig.mjs.map +1 -0
- package/dist/react/index.d.mts +21 -0
- package/dist/react/index.d.ts +21 -8
- package/dist/react/index.js +2 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/index.mjs +2 -0
- package/dist/react/index.mjs.map +1 -0
- package/dist/react/useFormatter.d.mts +12 -0
- package/dist/react/useFormatter.d.ts +12 -6
- package/dist/react/useFormatter.js +2 -0
- package/dist/react/useFormatter.js.map +1 -0
- package/dist/react/useFormatter.mjs +2 -0
- package/dist/react/useFormatter.mjs.map +1 -0
- package/dist/react/useIntl.d.mts +12 -0
- package/dist/react/useIntl.d.ts +12 -6
- package/dist/react/useIntl.js +2 -0
- package/dist/react/useIntl.js.map +1 -0
- package/dist/react/useIntl.mjs +2 -0
- package/dist/react/useIntl.mjs.map +1 -0
- package/dist/react/useIntlContext.d.mts +13 -0
- package/dist/react/useIntlContext.d.ts +13 -1
- package/dist/react/useIntlContext.js +2 -0
- package/dist/react/useIntlContext.js.map +1 -0
- package/dist/react/useIntlContext.mjs +2 -0
- package/dist/react/useIntlContext.mjs.map +1 -0
- package/dist/react/useLocale.d.mts +3 -0
- package/dist/react/useLocale.d.ts +3 -1
- package/dist/react/useLocale.js +2 -0
- package/dist/react/useLocale.js.map +1 -0
- package/dist/react/useLocale.mjs +2 -0
- package/dist/react/useLocale.mjs.map +1 -0
- package/dist/react/useMessages.d.mts +5 -0
- package/dist/react/useMessages.d.ts +5 -1
- package/dist/react/useMessages.js +2 -0
- package/dist/react/useMessages.js.map +1 -0
- package/dist/react/useMessages.mjs +2 -0
- package/dist/react/useMessages.mjs.map +1 -0
- package/dist/react/{use-intl.esm4.js → useNow.d.mts} +21 -42
- package/dist/react/useNow.d.ts +24 -23
- package/dist/react/useNow.js +2 -0
- package/dist/react/useNow.js.map +1 -0
- package/dist/react/useNow.mjs +2 -0
- package/dist/react/useNow.mjs.map +1 -0
- package/dist/react/useTimeZone.d.mts +5 -0
- package/dist/react/useTimeZone.d.ts +5 -1
- package/dist/react/useTimeZone.js +2 -0
- package/dist/react/useTimeZone.js.map +1 -0
- package/dist/react/useTimeZone.mjs +2 -0
- package/dist/react/useTimeZone.mjs.map +1 -0
- package/dist/react/useTranslations.d.mts +50 -0
- package/dist/react/useTranslations.d.ts +50 -44
- package/dist/react/useTranslations.js +2 -0
- package/dist/react/useTranslations.js.map +1 -0
- package/dist/react/useTranslations.mjs +2 -0
- package/dist/react/useTranslations.mjs.map +1 -0
- package/dist/react/useTranslationsImpl.d.mts +16 -0
- package/dist/react/useTranslationsImpl.d.ts +16 -8
- package/dist/react/useTranslationsImpl.js +2 -0
- package/dist/react/useTranslationsImpl.js.map +1 -0
- package/dist/react/useTranslationsImpl.mjs +2 -0
- package/dist/react/useTranslationsImpl.mjs.map +1 -0
- package/dist/src/core/AbstractIntlMessages.d.mts +10 -0
- package/dist/src/core/AbstractIntlMessages.d.ts +2 -1
- package/dist/src/core/AbstractIntlMessages.js +1 -1
- package/dist/src/core/AbstractIntlMessages.js.map +1 -1
- package/dist/src/core/AbstractIntlMessages.mjs +1 -0
- package/dist/src/core/AbstractIntlMessages.mjs.map +1 -0
- package/dist/src/core/DateTimeFormatOptions.d.mts +75 -0
- package/dist/src/core/DateTimeFormatOptions.d.ts +4 -2
- package/dist/src/core/DateTimeFormatOptions.js +1 -2
- package/dist/src/core/DateTimeFormatOptions.js.map +1 -1
- package/dist/src/core/DateTimeFormatOptions.mjs +1 -0
- package/dist/src/core/DateTimeFormatOptions.mjs.map +1 -0
- package/dist/src/core/Formats.d.mts +11 -0
- package/dist/src/core/Formats.d.ts +6 -3
- package/dist/src/core/Formats.js +1 -1
- package/dist/src/core/Formats.js.map +1 -1
- package/dist/src/core/Formats.mjs +1 -0
- package/dist/src/core/Formats.mjs.map +1 -0
- package/dist/src/core/IntlConfig.d.mts +60 -0
- package/dist/src/core/IntlConfig.d.ts +12 -6
- package/dist/src/core/IntlConfig.js +1 -1
- package/dist/src/core/IntlConfig.js.map +1 -1
- package/dist/src/core/IntlConfig.mjs +1 -0
- package/dist/src/core/IntlConfig.mjs.map +1 -0
- package/dist/src/core/IntlError.d.mts +15 -0
- package/dist/src/core/IntlError.d.ts +4 -2
- package/dist/src/core/IntlError.js +1 -22
- package/dist/src/core/IntlError.js.map +1 -1
- package/dist/src/core/IntlError.mjs +2 -0
- package/dist/src/core/IntlError.mjs.map +1 -0
- package/dist/src/core/NumberFormatOptions.d.mts +2 -0
- package/dist/src/core/NumberFormatOptions.d.ts +2 -2
- package/dist/src/core/NumberFormatOptions.js +1 -1
- package/dist/src/core/NumberFormatOptions.js.map +1 -1
- package/dist/src/core/NumberFormatOptions.mjs +2 -0
- package/dist/src/core/NumberFormatOptions.mjs.map +1 -0
- package/dist/src/core/TimeZone.d.mts +3 -0
- package/dist/src/core/TimeZone.d.ts +2 -1
- package/dist/src/core/TimeZone.js +1 -1
- package/dist/src/core/TimeZone.js.map +1 -1
- package/dist/src/core/TimeZone.mjs +1 -0
- package/dist/src/core/TimeZone.mjs.map +1 -0
- package/dist/src/core/TranslationValues.d.mts +7 -0
- package/dist/src/core/TranslationValues.d.ts +5 -3
- package/dist/src/core/TranslationValues.js +1 -1
- package/dist/src/core/TranslationValues.js.map +1 -1
- package/dist/src/core/TranslationValues.mjs +1 -0
- package/dist/src/core/TranslationValues.mjs.map +1 -0
- package/dist/src/core/convertFormatsToIntlMessageFormat.d.mts +16 -0
- package/dist/src/core/convertFormatsToIntlMessageFormat.d.ts +9 -4
- package/dist/src/core/convertFormatsToIntlMessageFormat.js +1 -30
- package/dist/src/core/convertFormatsToIntlMessageFormat.js.map +1 -1
- package/dist/src/core/convertFormatsToIntlMessageFormat.mjs +2 -0
- package/dist/src/core/convertFormatsToIntlMessageFormat.mjs.map +1 -0
- package/dist/src/core/createBaseTranslator.d.mts +32 -0
- package/dist/src/core/createBaseTranslator.d.ts +17 -11
- package/dist/src/core/createBaseTranslator.js +1 -205
- package/dist/src/core/createBaseTranslator.js.map +1 -1
- package/dist/src/core/createBaseTranslator.mjs +2 -0
- package/dist/src/core/createBaseTranslator.mjs.map +1 -0
- package/dist/src/core/createFormatter.d.mts +21 -0
- package/dist/src/core/createFormatter.d.ts +9 -7
- package/dist/src/core/createFormatter.js +1 -128
- package/dist/src/core/createFormatter.js.map +1 -1
- package/dist/src/core/createFormatter.mjs +2 -0
- package/dist/src/core/createFormatter.mjs.map +1 -0
- package/dist/src/core/createIntl.d.mts +15 -0
- package/dist/src/core/createIntl.d.ts +12 -4
- package/dist/src/core/createIntl.js +1 -10
- package/dist/src/core/createIntl.js.map +1 -1
- package/dist/src/core/createIntl.mjs +2 -0
- package/dist/src/core/createIntl.mjs.map +1 -0
- package/dist/src/core/createTranslator.d.mts +57 -0
- package/dist/src/core/createTranslator.d.ts +18 -9
- package/dist/src/core/createTranslator.js +1 -23
- package/dist/src/core/createTranslator.js.map +1 -1
- package/dist/src/core/createTranslator.mjs +2 -0
- package/dist/src/core/createTranslator.mjs.map +1 -0
- package/dist/src/core/createTranslatorImpl.d.mts +25 -0
- package/dist/src/core/createTranslatorImpl.d.ts +20 -9
- package/dist/src/core/createTranslatorImpl.js +1 -42
- package/dist/src/core/createTranslatorImpl.js.map +1 -1
- package/dist/src/core/createTranslatorImpl.mjs +2 -0
- package/dist/src/core/createTranslatorImpl.mjs.map +1 -0
- package/dist/src/core/defaults.d.mts +14 -0
- package/dist/src/core/defaults.d.ts +6 -3
- package/dist/src/core/defaults.js +1 -10
- package/dist/src/core/defaults.js.map +1 -1
- package/dist/src/core/defaults.mjs +2 -0
- package/dist/src/core/defaults.mjs.map +1 -0
- package/dist/src/core/index.d.mts +17 -0
- package/dist/src/core/index.d.ts +17 -9
- package/dist/src/core/index.js +1 -5
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/core/index.mjs +2 -0
- package/dist/src/core/index.mjs.map +1 -0
- package/dist/src/core/resolveNamespace.d.mts +7 -0
- package/dist/src/core/resolveNamespace.d.ts +3 -1
- package/dist/src/core/resolveNamespace.js +1 -9
- package/dist/src/core/resolveNamespace.js.map +1 -1
- package/dist/src/core/resolveNamespace.mjs +2 -0
- package/dist/src/core/resolveNamespace.mjs.map +1 -0
- package/dist/src/core/utils/MessageKeys.d.mts +7 -0
- package/dist/src/core/utils/MessageKeys.d.ts +4 -2
- package/dist/src/core/utils/MessageKeys.js +1 -1
- package/dist/src/core/utils/MessageKeys.js.map +1 -1
- package/dist/src/core/utils/MessageKeys.mjs +1 -0
- package/dist/src/core/utils/MessageKeys.mjs.map +1 -0
- package/dist/src/core/utils/NamespaceKeys.d.mts +7 -0
- package/dist/src/core/utils/NamespaceKeys.d.ts +4 -2
- package/dist/src/core/utils/NamespaceKeys.js +1 -1
- package/dist/src/core/utils/NamespaceKeys.js.map +1 -1
- package/dist/src/core/utils/NamespaceKeys.mjs +1 -0
- package/dist/src/core/utils/NamespaceKeys.mjs.map +1 -0
- package/dist/src/core/utils/NestedKeyOf.d.mts +5 -0
- package/dist/src/core/utils/NestedKeyOf.d.ts +2 -1
- package/dist/src/core/utils/NestedKeyOf.js +1 -1
- package/dist/src/core/utils/NestedKeyOf.js.map +1 -1
- package/dist/src/core/utils/NestedKeyOf.mjs +1 -0
- package/dist/src/core/utils/NestedKeyOf.mjs.map +1 -0
- package/dist/src/core/utils/NestedValueOf.d.mts +3 -0
- package/dist/src/core/utils/NestedValueOf.d.ts +2 -1
- package/dist/src/core/utils/NestedValueOf.js +1 -1
- package/dist/src/core/utils/NestedValueOf.js.map +1 -1
- package/dist/src/core/utils/NestedValueOf.mjs +1 -0
- package/dist/src/core/utils/NestedValueOf.mjs.map +1 -0
- package/dist/src/core/validateMessages.d.mts +6 -0
- package/dist/src/core/validateMessages.d.ts +6 -3
- package/dist/src/core/validateMessages.js +3 -25
- package/dist/src/core/validateMessages.js.map +1 -1
- package/dist/src/core/validateMessages.mjs +34 -0
- package/dist/src/core/validateMessages.mjs.map +1 -0
- package/dist/src/index.d.mts +25 -0
- package/dist/src/index.d.ts +25 -2
- package/dist/src/index.js +1 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +2 -0
- package/dist/src/index.mjs.map +1 -0
- package/dist/src/react/IntlContext.d.mts +13 -0
- package/dist/src/react/IntlContext.d.ts +13 -4
- package/dist/src/react/IntlContext.js +1 -3
- package/dist/src/react/IntlContext.js.map +1 -1
- package/dist/src/react/IntlContext.mjs +2 -0
- package/dist/src/react/IntlContext.mjs.map +1 -0
- package/dist/src/react/IntlProvider.d.mts +16 -0
- package/dist/src/react/IntlProvider.d.ts +12 -3
- package/dist/src/react/IntlProvider.js +1 -6
- package/dist/src/react/IntlProvider.js.map +1 -1
- package/dist/src/react/IntlProvider.mjs +2 -0
- package/dist/src/react/IntlProvider.mjs.map +1 -0
- package/dist/src/react/getInitializedConfig.d.mts +24 -0
- package/dist/src/react/getInitializedConfig.d.ts +16 -5
- package/dist/src/react/getInitializedConfig.js +1 -20
- package/dist/src/react/getInitializedConfig.js.map +1 -1
- package/dist/src/react/getInitializedConfig.mjs +2 -0
- package/dist/src/react/getInitializedConfig.mjs.map +1 -0
- package/dist/src/react/index.d.mts +21 -0
- package/dist/src/react/index.d.ts +21 -8
- package/dist/src/react/index.js +1 -9
- package/dist/src/react/index.js.map +1 -1
- package/dist/src/react/index.mjs +2 -0
- package/dist/src/react/index.mjs.map +1 -0
- package/dist/src/react/useFormatter.d.mts +12 -0
- package/dist/src/react/useFormatter.d.ts +9 -3
- package/dist/src/react/useFormatter.js +1 -13
- package/dist/src/react/useFormatter.js.map +1 -1
- package/dist/src/react/useFormatter.mjs +2 -0
- package/dist/src/react/useFormatter.mjs.map +1 -0
- package/dist/src/react/useIntl.d.mts +12 -0
- package/dist/src/react/useIntl.d.ts +9 -3
- package/dist/src/react/useIntl.js +1 -19
- package/dist/src/react/useIntl.js.map +1 -1
- package/dist/src/react/useIntl.mjs +2 -0
- package/dist/src/react/useIntl.mjs.map +1 -0
- package/dist/src/react/useIntlContext.d.mts +13 -0
- package/dist/src/react/useIntlContext.d.ts +13 -1
- package/dist/src/react/useIntlContext.js +1 -11
- package/dist/src/react/useIntlContext.js.map +1 -1
- package/dist/src/react/useIntlContext.mjs +2 -0
- package/dist/src/react/useIntlContext.mjs.map +1 -0
- package/dist/src/react/useLocale.d.mts +3 -0
- package/dist/src/react/useLocale.d.ts +3 -1
- package/dist/src/react/useLocale.js +1 -4
- package/dist/src/react/useLocale.js.map +1 -1
- package/dist/src/react/useLocale.mjs +2 -0
- package/dist/src/react/useLocale.mjs.map +1 -0
- package/dist/src/react/useMessages.d.mts +5 -0
- package/dist/src/react/useMessages.d.ts +5 -1
- package/dist/src/react/useMessages.js +1 -4
- package/dist/src/react/useMessages.js.map +1 -1
- package/dist/src/react/useMessages.mjs +2 -0
- package/dist/src/react/useMessages.mjs.map +1 -0
- package/dist/src/react/useNow.d.mts +24 -0
- package/dist/src/react/useNow.d.ts +3 -2
- package/dist/src/react/useNow.js +1 -39
- package/dist/src/react/useNow.js.map +1 -1
- package/dist/src/react/useNow.mjs +2 -0
- package/dist/src/react/useNow.mjs.map +1 -0
- package/dist/src/react/useTimeZone.d.mts +5 -0
- package/dist/src/react/useTimeZone.d.ts +5 -1
- package/dist/src/react/useTimeZone.js +1 -4
- package/dist/src/react/useTimeZone.js.map +1 -1
- package/dist/src/react/useTimeZone.mjs +2 -0
- package/dist/src/react/useTimeZone.mjs.map +1 -0
- package/dist/src/react/useTranslations.d.mts +50 -0
- package/dist/src/react/useTranslations.d.ts +13 -7
- package/dist/src/react/useTranslations.js +1 -20
- package/dist/src/react/useTranslations.js.map +1 -1
- package/dist/src/react/useTranslations.mjs +2 -0
- package/dist/src/react/useTranslations.mjs.map +1 -0
- package/dist/src/react/useTranslationsImpl.d.mts +16 -0
- package/dist/src/react/useTranslationsImpl.d.ts +14 -6
- package/dist/src/react/useTranslationsImpl.js +1 -34
- package/dist/src/react/useTranslationsImpl.js.map +1 -1
- package/dist/src/react/useTranslationsImpl.mjs +2 -0
- package/dist/src/react/useTranslationsImpl.mjs.map +1 -0
- package/package.json +8 -16
- package/src/core/index.tsx +5 -5
- package/dist/_virtual/use-intl.esm.js +0 -102
- package/dist/_virtual/use-intl.esm.js.map +0 -1
- package/dist/core/IntlMessages.d.ts +0 -2
- package/dist/core/use-intl.esm.js +0 -33
- package/dist/core/use-intl.esm.js.map +0 -1
- package/dist/core/use-intl.esm10.js +0 -32
- package/dist/core/use-intl.esm10.js.map +0 -1
- package/dist/core/use-intl.esm2.js +0 -37
- package/dist/core/use-intl.esm2.js.map +0 -1
- package/dist/core/use-intl.esm3.js +0 -138
- package/dist/core/use-intl.esm3.js.map +0 -1
- package/dist/core/use-intl.esm4.js +0 -14
- package/dist/core/use-intl.esm4.js.map +0 -1
- package/dist/core/use-intl.esm5.js +0 -53
- package/dist/core/use-intl.esm5.js.map +0 -1
- package/dist/core/use-intl.esm6.js +0 -15
- package/dist/core/use-intl.esm6.js.map +0 -1
- package/dist/core/use-intl.esm7.js +0 -191
- package/dist/core/use-intl.esm7.js.map +0 -1
- package/dist/core/use-intl.esm8.js +0 -10
- package/dist/core/use-intl.esm8.js.map +0 -1
- package/dist/core/use-intl.esm9.js +0 -28
- package/dist/core/use-intl.esm9.js.map +0 -1
- package/dist/react/use-intl.esm.js +0 -16
- package/dist/react/use-intl.esm.js.map +0 -1
- package/dist/react/use-intl.esm10.js +0 -29
- package/dist/react/use-intl.esm10.js.map +0 -1
- package/dist/react/use-intl.esm11.js +0 -13
- package/dist/react/use-intl.esm11.js.map +0 -1
- package/dist/react/use-intl.esm12.js +0 -43
- package/dist/react/use-intl.esm12.js.map +0 -1
- package/dist/react/use-intl.esm2.js +0 -26
- package/dist/react/use-intl.esm2.js.map +0 -1
- package/dist/react/use-intl.esm3.js +0 -8
- package/dist/react/use-intl.esm3.js.map +0 -1
- package/dist/react/use-intl.esm4.js.map +0 -1
- package/dist/react/use-intl.esm5.js +0 -8
- package/dist/react/use-intl.esm5.js.map +0 -1
- package/dist/react/use-intl.esm6.js +0 -8
- package/dist/react/use-intl.esm6.js.map +0 -1
- package/dist/react/use-intl.esm7.js +0 -24
- package/dist/react/use-intl.esm7.js.map +0 -1
- package/dist/react/use-intl.esm8.js +0 -30
- package/dist/react/use-intl.esm8.js.map +0 -1
- package/dist/react/use-intl.esm9.js +0 -6
- package/dist/react/use-intl.esm9.js.map +0 -1
- package/dist/src/core/IntlMessages.d.ts +0 -2
- package/dist/src/core/IntlMessages.js +0 -4
- package/dist/src/core/IntlMessages.js.map +0 -1
- package/dist/use-intl.cjs.development.js +0 -821
- package/dist/use-intl.cjs.development.js.map +0 -1
- package/dist/use-intl.cjs.production.min.js +0 -2
- package/dist/use-intl.cjs.production.min.js.map +0 -1
- package/dist/use-intl.esm.js +0 -13
- package/dist/use-intl.esm.js.map +0 -1
- package/src/core/IntlMessages.tsx +0 -5
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** A generic type that describes the shape of messages.
|
|
2
|
+
*
|
|
3
|
+
* Optionally `IntlMessages` can be provided to get type safety for message
|
|
4
|
+
* namespaces and keys. See https://next-intl-docs.vercel.app/docs/usage/typescript
|
|
5
|
+
*/
|
|
6
|
+
type AbstractIntlMessages = {
|
|
7
|
+
[id: string]: AbstractIntlMessages | string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { AbstractIntlMessages as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
/** A generic type that describes the shape of messages.
|
|
2
|
-
*
|
|
3
|
-
* Optionally `IntlMessages` can be provided to get type safety for message
|
|
4
|
-
* namespaces and keys. See https://next-intl-docs.vercel.app/docs/usage/typescript
|
|
5
|
-
*/
|
|
6
|
-
type AbstractIntlMessages = {
|
|
7
|
-
[id: string]: AbstractIntlMessages | string;
|
|
8
|
-
};
|
|
9
|
-
|
|
1
|
+
/** A generic type that describes the shape of messages.
|
|
2
|
+
*
|
|
3
|
+
* Optionally `IntlMessages` can be provided to get type safety for message
|
|
4
|
+
* namespaces and keys. See https://next-intl-docs.vercel.app/docs/usage/typescript
|
|
5
|
+
*/
|
|
6
|
+
type AbstractIntlMessages = {
|
|
7
|
+
[id: string]: AbstractIntlMessages | string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { AbstractIntlMessages as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var r=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var c=(t,s,g,a)=>{if(s&&typeof s=="object"||typeof s=="function")for(let e of l(s))!b.call(t,e)&&e!==g&&r(t,e,{get:()=>s[e],enumerable:!(a=n(s,e))||a.enumerable});return t};var i=t=>c(r({},"__esModule",{value:!0}),t);var A={};module.exports=i(A);
|
|
2
|
+
//# sourceMappingURL=AbstractIntlMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/AbstractIntlMessages.tsx"],"sourcesContent":["/** A generic type that describes the shape of messages.\n *\n * Optionally `IntlMessages` can be provided to get type safety for message\n * namespaces and keys. See https://next-intl-docs.vercel.app/docs/usage/typescript\n */\ntype AbstractIntlMessages = {\n [id: string]: AbstractIntlMessages | string;\n};\n\nexport default AbstractIntlMessages;\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["AbstractIntlMessages_exports","__toCommonJS"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=AbstractIntlMessages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import TimeZone from './TimeZone.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
|
|
5
|
+
*/
|
|
6
|
+
type DateTimeFormatOptions = Intl.DateTimeFormatOptions & {
|
|
7
|
+
/**
|
|
8
|
+
* Examples:
|
|
9
|
+
* - numeric: "2021"
|
|
10
|
+
* - 2-digit: "21"
|
|
11
|
+
*/
|
|
12
|
+
year?: 'numeric' | '2-digit';
|
|
13
|
+
/** Examples:
|
|
14
|
+
* - numeric: "3"
|
|
15
|
+
* - 2-digit: "03"
|
|
16
|
+
* - long: "March"
|
|
17
|
+
* - short: "Mar"
|
|
18
|
+
* - narrow: "M"
|
|
19
|
+
*/
|
|
20
|
+
month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow';
|
|
21
|
+
/** Examples:
|
|
22
|
+
* - numeric: "2"
|
|
23
|
+
* - 2-digit: "02"
|
|
24
|
+
*/
|
|
25
|
+
day?: 'numeric' | '2-digit';
|
|
26
|
+
/** Examples:
|
|
27
|
+
* - numeric: "2"
|
|
28
|
+
* - 2-digit: "02"
|
|
29
|
+
*/
|
|
30
|
+
hour?: 'numeric' | '2-digit';
|
|
31
|
+
/** Examples:
|
|
32
|
+
* - numeric: "2"
|
|
33
|
+
* - 2-digit: "02"
|
|
34
|
+
*/
|
|
35
|
+
minute?: 'numeric' | '2-digit';
|
|
36
|
+
/** Examples:
|
|
37
|
+
* - numeric: "2"
|
|
38
|
+
* - 2-digit: "02"
|
|
39
|
+
*/
|
|
40
|
+
second?: 'numeric' | '2-digit';
|
|
41
|
+
/** Examples:
|
|
42
|
+
* - long: "Thursday"
|
|
43
|
+
* - short: "Thu"
|
|
44
|
+
* - narrow: "T"
|
|
45
|
+
*/
|
|
46
|
+
weekday?: 'long' | 'short' | 'narrow';
|
|
47
|
+
/** Examples:
|
|
48
|
+
* - long: "Anno Domini"
|
|
49
|
+
* - short: "AD", narrow "A"
|
|
50
|
+
*/
|
|
51
|
+
era?: 'long' | 'short' | 'narrow';
|
|
52
|
+
/** If this is set to `true`, a 12-hour am/pm format is used. Otherwise a 24-hour time.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
hour12?: boolean;
|
|
56
|
+
/** Examples:
|
|
57
|
+
* - long: "Pacific Daylight Time"
|
|
58
|
+
* - short: "PDT"
|
|
59
|
+
*/
|
|
60
|
+
timeZoneName?: 'long' | 'short';
|
|
61
|
+
/**
|
|
62
|
+
* One of the [database names from the TZ database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
|
|
63
|
+
*/
|
|
64
|
+
timeZone?: TimeZone;
|
|
65
|
+
localeMatcher?: 'best fit' | 'lookup';
|
|
66
|
+
formatMatcher?: 'best fit' | 'basic';
|
|
67
|
+
dateStyle?: 'full' | 'long' | 'medium' | 'short';
|
|
68
|
+
timeStyle?: 'full' | 'long' | 'medium' | 'short';
|
|
69
|
+
calendar?: 'buddhist' | 'chinese' | 'coptic' | 'ethiopia' | 'ethiopic' | 'gregory' | 'hebrew' | 'indian' | 'islamic' | 'iso8601' | 'japanese' | 'persian' | 'roc';
|
|
70
|
+
dayPeriod?: 'narrow' | 'short' | 'long';
|
|
71
|
+
numberingSystem?: 'arab' | 'arabext' | 'bali' | 'beng' | 'deva' | 'fullwide' | 'gujr' | 'guru' | 'hanidec' | 'khmr' | 'knda' | 'laoo' | 'latn' | 'limb' | 'mlym' | 'mong' | 'mymr' | 'orya' | 'tamldec' | 'telu' | 'thai' | 'tibt';
|
|
72
|
+
hourCycle?: 'h11' | 'h12' | 'h23' | 'h24';
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { DateTimeFormatOptions as default };
|
|
@@ -1,73 +1,75 @@
|
|
|
1
|
-
import TimeZone from './TimeZone';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* -
|
|
15
|
-
* -
|
|
16
|
-
* -
|
|
17
|
-
* -
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* -
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
* -
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* -
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* -
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
* -
|
|
43
|
-
* -
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
* -
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
* -
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
1
|
+
import TimeZone from './TimeZone.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
|
|
5
|
+
*/
|
|
6
|
+
type DateTimeFormatOptions = Intl.DateTimeFormatOptions & {
|
|
7
|
+
/**
|
|
8
|
+
* Examples:
|
|
9
|
+
* - numeric: "2021"
|
|
10
|
+
* - 2-digit: "21"
|
|
11
|
+
*/
|
|
12
|
+
year?: 'numeric' | '2-digit';
|
|
13
|
+
/** Examples:
|
|
14
|
+
* - numeric: "3"
|
|
15
|
+
* - 2-digit: "03"
|
|
16
|
+
* - long: "March"
|
|
17
|
+
* - short: "Mar"
|
|
18
|
+
* - narrow: "M"
|
|
19
|
+
*/
|
|
20
|
+
month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow';
|
|
21
|
+
/** Examples:
|
|
22
|
+
* - numeric: "2"
|
|
23
|
+
* - 2-digit: "02"
|
|
24
|
+
*/
|
|
25
|
+
day?: 'numeric' | '2-digit';
|
|
26
|
+
/** Examples:
|
|
27
|
+
* - numeric: "2"
|
|
28
|
+
* - 2-digit: "02"
|
|
29
|
+
*/
|
|
30
|
+
hour?: 'numeric' | '2-digit';
|
|
31
|
+
/** Examples:
|
|
32
|
+
* - numeric: "2"
|
|
33
|
+
* - 2-digit: "02"
|
|
34
|
+
*/
|
|
35
|
+
minute?: 'numeric' | '2-digit';
|
|
36
|
+
/** Examples:
|
|
37
|
+
* - numeric: "2"
|
|
38
|
+
* - 2-digit: "02"
|
|
39
|
+
*/
|
|
40
|
+
second?: 'numeric' | '2-digit';
|
|
41
|
+
/** Examples:
|
|
42
|
+
* - long: "Thursday"
|
|
43
|
+
* - short: "Thu"
|
|
44
|
+
* - narrow: "T"
|
|
45
|
+
*/
|
|
46
|
+
weekday?: 'long' | 'short' | 'narrow';
|
|
47
|
+
/** Examples:
|
|
48
|
+
* - long: "Anno Domini"
|
|
49
|
+
* - short: "AD", narrow "A"
|
|
50
|
+
*/
|
|
51
|
+
era?: 'long' | 'short' | 'narrow';
|
|
52
|
+
/** If this is set to `true`, a 12-hour am/pm format is used. Otherwise a 24-hour time.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
hour12?: boolean;
|
|
56
|
+
/** Examples:
|
|
57
|
+
* - long: "Pacific Daylight Time"
|
|
58
|
+
* - short: "PDT"
|
|
59
|
+
*/
|
|
60
|
+
timeZoneName?: 'long' | 'short';
|
|
61
|
+
/**
|
|
62
|
+
* One of the [database names from the TZ database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
|
|
63
|
+
*/
|
|
64
|
+
timeZone?: TimeZone;
|
|
65
|
+
localeMatcher?: 'best fit' | 'lookup';
|
|
66
|
+
formatMatcher?: 'best fit' | 'basic';
|
|
67
|
+
dateStyle?: 'full' | 'long' | 'medium' | 'short';
|
|
68
|
+
timeStyle?: 'full' | 'long' | 'medium' | 'short';
|
|
69
|
+
calendar?: 'buddhist' | 'chinese' | 'coptic' | 'ethiopia' | 'ethiopic' | 'gregory' | 'hebrew' | 'indian' | 'islamic' | 'iso8601' | 'japanese' | 'persian' | 'roc';
|
|
70
|
+
dayPeriod?: 'narrow' | 'short' | 'long';
|
|
71
|
+
numberingSystem?: 'arab' | 'arabext' | 'bali' | 'beng' | 'deva' | 'fullwide' | 'gujr' | 'guru' | 'hanidec' | 'khmr' | 'knda' | 'laoo' | 'latn' | 'limb' | 'mlym' | 'mong' | 'mymr' | 'orya' | 'tamldec' | 'telu' | 'thai' | 'tibt';
|
|
72
|
+
hourCycle?: 'h11' | 'h12' | 'h23' | 'h24';
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { DateTimeFormatOptions as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var r=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var h=(i,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of m(e))!l.call(i,t)&&t!==a&&r(i,t,{get:()=>e[t],enumerable:!(o=n(e,t))||o.enumerable});return i};var d=i=>h(r({},"__esModule",{value:!0}),i);var u={};module.exports=d(u);
|
|
2
|
+
//# sourceMappingURL=DateTimeFormatOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/DateTimeFormatOptions.tsx"],"sourcesContent":["// https://github.com/microsoft/TypeScript/issues/35865\n\nimport TimeZone from './TimeZone';\n\n/**\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat\n */\ntype DateTimeFormatOptions = Intl.DateTimeFormatOptions & {\n /**\n * Examples:\n * - numeric: \"2021\"\n * - 2-digit: \"21\"\n */\n year?: 'numeric' | '2-digit';\n\n /** Examples:\n * - numeric: \"3\"\n * - 2-digit: \"03\"\n * - long: \"March\"\n * - short: \"Mar\"\n * - narrow: \"M\"\n */\n month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow';\n\n /** Examples:\n * - numeric: \"2\"\n * - 2-digit: \"02\"\n */\n day?: 'numeric' | '2-digit';\n\n /** Examples:\n * - numeric: \"2\"\n * - 2-digit: \"02\"\n */\n hour?: 'numeric' | '2-digit';\n\n /** Examples:\n * - numeric: \"2\"\n * - 2-digit: \"02\"\n */\n minute?: 'numeric' | '2-digit';\n\n /** Examples:\n * - numeric: \"2\"\n * - 2-digit: \"02\"\n */\n second?: 'numeric' | '2-digit';\n\n /** Examples:\n * - long: \"Thursday\"\n * - short: \"Thu\"\n * - narrow: \"T\"\n */\n weekday?: 'long' | 'short' | 'narrow';\n\n /** Examples:\n * - long: \"Anno Domini\"\n * - short: \"AD\", narrow \"A\"\n */\n era?: 'long' | 'short' | 'narrow';\n\n /** If this is set to `true`, a 12-hour am/pm format is used. Otherwise a 24-hour time.\n *\n */\n hour12?: boolean;\n\n /** Examples:\n * - long: \"Pacific Daylight Time\"\n * - short: \"PDT\"\n */\n timeZoneName?: 'long' | 'short';\n\n /**\n * One of the [database names from the TZ database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).\n */\n timeZone?: TimeZone;\n\n localeMatcher?: 'best fit' | 'lookup';\n\n formatMatcher?: 'best fit' | 'basic';\n\n dateStyle?: 'full' | 'long' | 'medium' | 'short';\n\n timeStyle?: 'full' | 'long' | 'medium' | 'short';\n\n calendar?:\n | 'buddhist'\n | 'chinese'\n | 'coptic'\n | 'ethiopia'\n | 'ethiopic'\n | 'gregory'\n | 'hebrew'\n | 'indian'\n | 'islamic'\n | 'iso8601'\n | 'japanese'\n | 'persian'\n | 'roc';\n\n dayPeriod?: 'narrow' | 'short' | 'long';\n\n numberingSystem?:\n | 'arab'\n | 'arabext'\n | 'bali'\n | 'beng'\n | 'deva'\n | 'fullwide'\n | 'gujr'\n | 'guru'\n | 'hanidec'\n | 'khmr'\n | 'knda'\n | 'laoo'\n | 'latn'\n | 'limb'\n | 'mlym'\n | 'mong'\n | 'mymr'\n | 'orya'\n | 'tamldec'\n | 'telu'\n | 'thai'\n | 'tibt';\n\n hourCycle?: 'h11' | 'h12' | 'h23' | 'h24';\n};\n\nexport default DateTimeFormatOptions;\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["DateTimeFormatOptions_exports","__toCommonJS"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=DateTimeFormatOptions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import DateTimeFormatOptions from './DateTimeFormatOptions.mjs';
|
|
2
|
+
import { NumberFormatOptions } from '@formatjs/ecma402-abstract/types/number';
|
|
3
|
+
import './TimeZone.mjs';
|
|
4
|
+
|
|
5
|
+
type Formats = {
|
|
6
|
+
number: Record<string, NumberFormatOptions>;
|
|
7
|
+
dateTime: Record<string, DateTimeFormatOptions>;
|
|
8
|
+
list: Record<string, Intl.ListFormatOptions>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { Formats as default };
|
package/dist/core/Formats.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import DateTimeFormatOptions from './DateTimeFormatOptions';
|
|
2
|
-
import NumberFormatOptions from '
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import DateTimeFormatOptions from './DateTimeFormatOptions.js';
|
|
2
|
+
import { NumberFormatOptions } from '@formatjs/ecma402-abstract/types/number';
|
|
3
|
+
import './TimeZone.js';
|
|
4
|
+
|
|
5
|
+
type Formats = {
|
|
6
|
+
number: Record<string, NumberFormatOptions>;
|
|
7
|
+
dateTime: Record<string, DateTimeFormatOptions>;
|
|
8
|
+
list: Record<string, Intl.ListFormatOptions>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { Formats as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var p=(r,t,i,m)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of a(t))!n.call(r,o)&&o!==i&&e(r,o,{get:()=>t[o],enumerable:!(m=s(t,o))||m.enumerable});return r};var F=r=>p(e({},"__esModule",{value:!0}),r);var d={};module.exports=F(d);
|
|
2
|
+
//# sourceMappingURL=Formats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/Formats.tsx"],"sourcesContent":["import DateTimeFormatOptions from './DateTimeFormatOptions';\nimport NumberFormatOptions from './NumberFormatOptions';\n\ntype Formats = {\n number: Record<string, NumberFormatOptions>;\n dateTime: Record<string, DateTimeFormatOptions>;\n list: Record<string, Intl.ListFormatOptions>;\n};\n\nexport default Formats;\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["Formats_exports","__toCommonJS"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=Formats.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import Formats from './Formats.mjs';
|
|
2
|
+
import IntlError from './IntlError.mjs';
|
|
3
|
+
import TimeZone from './TimeZone.mjs';
|
|
4
|
+
import AbstractIntlMessages from './AbstractIntlMessages.mjs';
|
|
5
|
+
import { RichTranslationValues } from './TranslationValues.mjs';
|
|
6
|
+
import './DateTimeFormatOptions.mjs';
|
|
7
|
+
import '@formatjs/ecma402-abstract/types/number';
|
|
8
|
+
import 'react';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Should be used for entry points that configure the library.
|
|
12
|
+
*/
|
|
13
|
+
type IntlConfig<Messages = AbstractIntlMessages> = {
|
|
14
|
+
/** A valid Unicode locale tag (e.g. "en" or "en-GB"). */
|
|
15
|
+
locale: string;
|
|
16
|
+
/** Global formats can be provided to achieve consistent
|
|
17
|
+
* formatting across components. */
|
|
18
|
+
formats?: Partial<Formats>;
|
|
19
|
+
/** A time zone as defined in [the tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) which will be applied when formatting dates and times. If this is absent, the user time zone will be used. You can override this by supplying an explicit time zone to `formatDateTime`. */
|
|
20
|
+
timeZone?: TimeZone;
|
|
21
|
+
/** This callback will be invoked when an error is encountered during
|
|
22
|
+
* resolving a message or formatting it. This defaults to `console.error` to
|
|
23
|
+
* keep your app running. You can customize the handling by taking
|
|
24
|
+
* `error.code` into account. */
|
|
25
|
+
onError?(error: IntlError): void;
|
|
26
|
+
/** Will be called when a message couldn't be resolved or formatting it led to
|
|
27
|
+
* an error. This defaults to `${namespace}.${key}` You can use this to
|
|
28
|
+
* customize what will be rendered in this case. */
|
|
29
|
+
getMessageFallback?(info: {
|
|
30
|
+
error: IntlError;
|
|
31
|
+
key: string;
|
|
32
|
+
namespace?: string;
|
|
33
|
+
}): string;
|
|
34
|
+
/**
|
|
35
|
+
* Providing this value will have two effects:
|
|
36
|
+
* 1. It will be used as the default for the `now` argument of
|
|
37
|
+
* `useIntl().formatRelativeTime` if no explicit value is provided.
|
|
38
|
+
* 2. It will be returned as a static value from the `useNow` hook. Note
|
|
39
|
+
* however that when `updateInterval` is configured on the `useNow` hook,
|
|
40
|
+
* the global `now` value will only be used for the initial render, but
|
|
41
|
+
* afterwards the current date will be returned continuously.
|
|
42
|
+
*/
|
|
43
|
+
now?: Date;
|
|
44
|
+
/** All messages that will be available. */
|
|
45
|
+
messages?: Messages;
|
|
46
|
+
/** Global default values for translation values and rich text elements.
|
|
47
|
+
* Can be used for consistent usage or styling of rich text elements.
|
|
48
|
+
* Defaults will be overidden by locally provided values. */
|
|
49
|
+
defaultTranslationValues?: RichTranslationValues;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* A stricter set of the configuration that should be used internally
|
|
53
|
+
* once defaults are assigned to `IntlConfiguration`.
|
|
54
|
+
*/
|
|
55
|
+
type InitializedIntlConfig<Messages = AbstractIntlMessages> = IntlConfig<Messages> & {
|
|
56
|
+
onError: NonNullable<IntlConfig<Messages>['onError']>;
|
|
57
|
+
getMessageFallback: NonNullable<IntlConfig<Messages>['getMessageFallback']>;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { InitializedIntlConfig, IntlConfig as default };
|
|
@@ -1,54 +1,60 @@
|
|
|
1
|
-
import Formats from './Formats';
|
|
2
|
-
import IntlError from './IntlError';
|
|
3
|
-
import TimeZone from './TimeZone';
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/** A
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
import Formats from './Formats.js';
|
|
2
|
+
import IntlError from './IntlError.js';
|
|
3
|
+
import TimeZone from './TimeZone.js';
|
|
4
|
+
import AbstractIntlMessages from './AbstractIntlMessages.js';
|
|
5
|
+
import { RichTranslationValues } from './TranslationValues.js';
|
|
6
|
+
import './DateTimeFormatOptions.js';
|
|
7
|
+
import '@formatjs/ecma402-abstract/types/number';
|
|
8
|
+
import 'react';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Should be used for entry points that configure the library.
|
|
12
|
+
*/
|
|
13
|
+
type IntlConfig<Messages = AbstractIntlMessages> = {
|
|
14
|
+
/** A valid Unicode locale tag (e.g. "en" or "en-GB"). */
|
|
15
|
+
locale: string;
|
|
16
|
+
/** Global formats can be provided to achieve consistent
|
|
17
|
+
* formatting across components. */
|
|
18
|
+
formats?: Partial<Formats>;
|
|
19
|
+
/** A time zone as defined in [the tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) which will be applied when formatting dates and times. If this is absent, the user time zone will be used. You can override this by supplying an explicit time zone to `formatDateTime`. */
|
|
20
|
+
timeZone?: TimeZone;
|
|
21
|
+
/** This callback will be invoked when an error is encountered during
|
|
22
|
+
* resolving a message or formatting it. This defaults to `console.error` to
|
|
23
|
+
* keep your app running. You can customize the handling by taking
|
|
24
|
+
* `error.code` into account. */
|
|
25
|
+
onError?(error: IntlError): void;
|
|
26
|
+
/** Will be called when a message couldn't be resolved or formatting it led to
|
|
27
|
+
* an error. This defaults to `${namespace}.${key}` You can use this to
|
|
28
|
+
* customize what will be rendered in this case. */
|
|
29
|
+
getMessageFallback?(info: {
|
|
30
|
+
error: IntlError;
|
|
31
|
+
key: string;
|
|
32
|
+
namespace?: string;
|
|
33
|
+
}): string;
|
|
34
|
+
/**
|
|
35
|
+
* Providing this value will have two effects:
|
|
36
|
+
* 1. It will be used as the default for the `now` argument of
|
|
37
|
+
* `useIntl().formatRelativeTime` if no explicit value is provided.
|
|
38
|
+
* 2. It will be returned as a static value from the `useNow` hook. Note
|
|
39
|
+
* however that when `updateInterval` is configured on the `useNow` hook,
|
|
40
|
+
* the global `now` value will only be used for the initial render, but
|
|
41
|
+
* afterwards the current date will be returned continuously.
|
|
42
|
+
*/
|
|
43
|
+
now?: Date;
|
|
44
|
+
/** All messages that will be available. */
|
|
45
|
+
messages?: Messages;
|
|
46
|
+
/** Global default values for translation values and rich text elements.
|
|
47
|
+
* Can be used for consistent usage or styling of rich text elements.
|
|
48
|
+
* Defaults will be overidden by locally provided values. */
|
|
49
|
+
defaultTranslationValues?: RichTranslationValues;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* A stricter set of the configuration that should be used internally
|
|
53
|
+
* once defaults are assigned to `IntlConfiguration`.
|
|
54
|
+
*/
|
|
55
|
+
type InitializedIntlConfig<Messages = AbstractIntlMessages> = IntlConfig<Messages> & {
|
|
56
|
+
onError: NonNullable<IntlConfig<Messages>['onError']>;
|
|
57
|
+
getMessageFallback: NonNullable<IntlConfig<Messages>['getMessageFallback']>;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { InitializedIntlConfig, IntlConfig as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var g=(s,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!i.call(s,r)&&r!==o&&t(s,r,{get:()=>e[r],enumerable:!(a=n(e,r))||a.enumerable});return s};var m=s=>g(t({},"__esModule",{value:!0}),s);var f={};module.exports=m(f);
|
|
2
|
+
//# sourceMappingURL=IntlConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/IntlConfig.tsx"],"sourcesContent":["import Formats from './Formats';\nimport IntlError from './IntlError';\nimport TimeZone from './TimeZone';\nimport {AbstractIntlMessages, RichTranslationValues} from '.';\n\n/**\n * Should be used for entry points that configure the library.\n */\n\ntype IntlConfig<Messages = AbstractIntlMessages> = {\n /** A valid Unicode locale tag (e.g. \"en\" or \"en-GB\"). */\n locale: string;\n /** Global formats can be provided to achieve consistent\n * formatting across components. */\n formats?: Partial<Formats>;\n /** A time zone as defined in [the tz database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) which will be applied when formatting dates and times. If this is absent, the user time zone will be used. You can override this by supplying an explicit time zone to `formatDateTime`. */\n timeZone?: TimeZone;\n /** This callback will be invoked when an error is encountered during\n * resolving a message or formatting it. This defaults to `console.error` to\n * keep your app running. You can customize the handling by taking\n * `error.code` into account. */\n onError?(error: IntlError): void;\n /** Will be called when a message couldn't be resolved or formatting it led to\n * an error. This defaults to `${namespace}.${key}` You can use this to\n * customize what will be rendered in this case. */\n getMessageFallback?(info: {\n error: IntlError;\n key: string;\n namespace?: string;\n }): string;\n /**\n * Providing this value will have two effects:\n * 1. It will be used as the default for the `now` argument of\n * `useIntl().formatRelativeTime` if no explicit value is provided.\n * 2. It will be returned as a static value from the `useNow` hook. Note\n * however that when `updateInterval` is configured on the `useNow` hook,\n * the global `now` value will only be used for the initial render, but\n * afterwards the current date will be returned continuously.\n */\n now?: Date;\n /** All messages that will be available. */\n messages?: Messages;\n /** Global default values for translation values and rich text elements.\n * Can be used for consistent usage or styling of rich text elements.\n * Defaults will be overidden by locally provided values. */\n defaultTranslationValues?: RichTranslationValues;\n};\n\n/**\n * A stricter set of the configuration that should be used internally\n * once defaults are assigned to `IntlConfiguration`.\n */\nexport type InitializedIntlConfig<Messages = AbstractIntlMessages> =\n IntlConfig<Messages> & {\n onError: NonNullable<IntlConfig<Messages>['onError']>;\n getMessageFallback: NonNullable<IntlConfig<Messages>['getMessageFallback']>;\n };\n\nexport default IntlConfig;\n"],"mappings":"+WAAA,IAAAA,EAAA,kBAAAC,EAAAD","names":["IntlConfig_exports","__toCommonJS"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=IntlConfig.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare enum IntlErrorCode {
|
|
2
|
+
MISSING_MESSAGE = "MISSING_MESSAGE",
|
|
3
|
+
MISSING_FORMAT = "MISSING_FORMAT",
|
|
4
|
+
INSUFFICIENT_PATH = "INSUFFICIENT_PATH",
|
|
5
|
+
INVALID_MESSAGE = "INVALID_MESSAGE",
|
|
6
|
+
INVALID_KEY = "INVALID_KEY",
|
|
7
|
+
FORMATTING_ERROR = "FORMATTING_ERROR"
|
|
8
|
+
}
|
|
9
|
+
declare class IntlError extends Error {
|
|
10
|
+
readonly code: IntlErrorCode;
|
|
11
|
+
readonly originalMessage: string | undefined;
|
|
12
|
+
constructor(code: IntlErrorCode, originalMessage?: string);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { IntlErrorCode, IntlError as default };
|
package/dist/core/IntlError.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
MISSING_MESSAGE = "MISSING_MESSAGE",
|
|
3
|
-
MISSING_FORMAT = "MISSING_FORMAT",
|
|
4
|
-
INSUFFICIENT_PATH = "INSUFFICIENT_PATH",
|
|
5
|
-
INVALID_MESSAGE = "INVALID_MESSAGE",
|
|
6
|
-
INVALID_KEY = "INVALID_KEY",
|
|
7
|
-
FORMATTING_ERROR = "FORMATTING_ERROR"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
readonly code: IntlErrorCode;
|
|
11
|
-
readonly originalMessage: string | undefined;
|
|
12
|
-
constructor(code: IntlErrorCode, originalMessage?: string);
|
|
13
|
-
}
|
|
1
|
+
declare enum IntlErrorCode {
|
|
2
|
+
MISSING_MESSAGE = "MISSING_MESSAGE",
|
|
3
|
+
MISSING_FORMAT = "MISSING_FORMAT",
|
|
4
|
+
INSUFFICIENT_PATH = "INSUFFICIENT_PATH",
|
|
5
|
+
INVALID_MESSAGE = "INVALID_MESSAGE",
|
|
6
|
+
INVALID_KEY = "INVALID_KEY",
|
|
7
|
+
FORMATTING_ERROR = "FORMATTING_ERROR"
|
|
8
|
+
}
|
|
9
|
+
declare class IntlError extends Error {
|
|
10
|
+
readonly code: IntlErrorCode;
|
|
11
|
+
readonly originalMessage: string | undefined;
|
|
12
|
+
constructor(code: IntlErrorCode, originalMessage?: string);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { IntlErrorCode, IntlError as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var M=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var e=Object.prototype.hasOwnProperty;var t=(S,I)=>{for(var N in I)M(S,N,{get:I[N],enumerable:!0})},i=(S,I,N,E)=>{if(I&&typeof I=="object"||typeof I=="function")for(let A of T(I))!e.call(S,A)&&A!==N&&M(S,A,{get:()=>I[A],enumerable:!(E=R(I,A))||E.enumerable});return S};var F=S=>i(M({},"__esModule",{value:!0}),S);var u={};t(u,{IntlErrorCode:()=>s,default:()=>G});module.exports=F(u);var s=(_=>(_.MISSING_MESSAGE="MISSING_MESSAGE",_.MISSING_FORMAT="MISSING_FORMAT",_.INSUFFICIENT_PATH="INSUFFICIENT_PATH",_.INVALID_MESSAGE="INVALID_MESSAGE",_.INVALID_KEY="INVALID_KEY",_.FORMATTING_ERROR="FORMATTING_ERROR",_))(s||{});class G extends Error{constructor(N,E){let A=N;E&&(A+=": "+E);super(A);this.code=N,E&&(this.originalMessage=E)}}0&&(module.exports={IntlErrorCode});
|
|
2
|
+
//# sourceMappingURL=IntlError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/IntlError.tsx"],"sourcesContent":["export enum IntlErrorCode {\n MISSING_MESSAGE = 'MISSING_MESSAGE',\n MISSING_FORMAT = 'MISSING_FORMAT',\n INSUFFICIENT_PATH = 'INSUFFICIENT_PATH',\n INVALID_MESSAGE = 'INVALID_MESSAGE',\n INVALID_KEY = 'INVALID_KEY',\n FORMATTING_ERROR = 'FORMATTING_ERROR'\n}\n\nexport default class IntlError extends Error {\n public readonly code: IntlErrorCode;\n public readonly originalMessage: string | undefined;\n\n constructor(code: IntlErrorCode, originalMessage?: string) {\n let message: string = code;\n if (originalMessage) {\n message += ': ' + originalMessage;\n }\n super(message);\n\n this.code = code;\n if (originalMessage) {\n this.originalMessage = originalMessage;\n }\n }\n}\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,EAAA,YAAAC,IAAA,eAAAC,EAAAJ,GAAO,IAAKE,OACVA,EAAA,gBAAkB,kBAClBA,EAAA,eAAiB,iBACjBA,EAAA,kBAAoB,oBACpBA,EAAA,gBAAkB,kBAClBA,EAAA,YAAc,cACdA,EAAA,iBAAmB,mBANTA,OAAA,IASZ,MAAOC,UAAgC,KAAM,CAI3C,YAAYE,EAAqBC,EAA0B,CACzD,IAAIC,EAAkBF,EAClBC,IACFC,GAAW,KAAOD,GAEpB,MAAMC,CAAO,EAEb,KAAK,KAAOF,EACRC,IACF,KAAK,gBAAkBA,EAE3B,CACF","names":["IntlError_exports","__export","IntlErrorCode","IntlError","__toCommonJS","code","originalMessage","message"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var E=(I=>(I.MISSING_MESSAGE="MISSING_MESSAGE",I.MISSING_FORMAT="MISSING_FORMAT",I.INSUFFICIENT_PATH="INSUFFICIENT_PATH",I.INVALID_MESSAGE="INVALID_MESSAGE",I.INVALID_KEY="INVALID_KEY",I.FORMATTING_ERROR="FORMATTING_ERROR",I))(E||{});class _ extends Error{constructor(A,S){let N=A;S&&(N+=": "+S);super(N);this.code=A,S&&(this.originalMessage=S)}}export{E as IntlErrorCode,_ as default};
|
|
2
|
+
//# sourceMappingURL=IntlError.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/IntlError.tsx"],"sourcesContent":["export enum IntlErrorCode {\n MISSING_MESSAGE = 'MISSING_MESSAGE',\n MISSING_FORMAT = 'MISSING_FORMAT',\n INSUFFICIENT_PATH = 'INSUFFICIENT_PATH',\n INVALID_MESSAGE = 'INVALID_MESSAGE',\n INVALID_KEY = 'INVALID_KEY',\n FORMATTING_ERROR = 'FORMATTING_ERROR'\n}\n\nexport default class IntlError extends Error {\n public readonly code: IntlErrorCode;\n public readonly originalMessage: string | undefined;\n\n constructor(code: IntlErrorCode, originalMessage?: string) {\n let message: string = code;\n if (originalMessage) {\n message += ': ' + originalMessage;\n }\n super(message);\n\n this.code = code;\n if (originalMessage) {\n this.originalMessage = originalMessage;\n }\n }\n}\n"],"mappings":"AAAO,IAAKA,OACVA,EAAA,gBAAkB,kBAClBA,EAAA,eAAiB,iBACjBA,EAAA,kBAAoB,oBACpBA,EAAA,gBAAkB,kBAClBA,EAAA,YAAc,cACdA,EAAA,iBAAmB,mBANTA,OAAA,IASZ,MAAOC,UAAgC,KAAM,CAI3C,YAAYC,EAAqBC,EAA0B,CACzD,IAAIC,EAAkBF,EAClBC,IACFC,GAAW,KAAOD,GAEpB,MAAMC,CAAO,EAEb,KAAK,KAAOF,EACRC,IACF,KAAK,gBAAkBA,EAE3B,CACF","names":["IntlErrorCode","IntlError","code","originalMessage","message"]}
|