{"version":3,"file":"useIntl.cjs","names":["useIntlBase","resolveAmbientLocale"],"sources":["../../../src/server/useIntl.ts"],"sourcesContent":["import type { WrappedIntl } from '@intlayer/core/formatters';\nimport type { LocalesValues } from '@intlayer/types/module_augmentation';\nimport { useIntl as useIntlBase } from 'react-intlayer/server';\nimport { resolveAmbientLocale } from './ambientLocale';\n\n/**\n * On the server side, hook providing a locale-bound `Intl` object.\n *\n * If the locale is not provided, it will use the locale from the server\n * context, falling back to the locale carried by the request.\n */\nexport const useIntl = (locale?: LocalesValues): WrappedIntl =>\n  useIntlBase(resolveAmbientLocale(locale));\n"],"mappings":";;;;;;;;;;;AAWA,MAAa,WAAW,eACtBA,+BAAYC,kDAAqB,MAAM,CAAC"}