{"version":3,"file":"useLocale.mjs","names":[],"sources":["../../../../package/common/configProvider/useLocale.ts"],"sourcesContent":["import { useContext } from 'react';\nimport { LocaleContext } from './configProvider';\n\n/**\n * The nearest `ConfigProvider`'s `locale`, or `undefined` when none is set, which `Intl` reads as\n * the browser's locale. Pass it straight to `Intl` so the app's own dates match the components'.\n */\nexport function useLocale(): string | undefined {\n  return useContext(LocaleContext);\n}\n"],"mappings":"qGAOA,SAAgB,GAAgC,CAC9C,OAAO,EAAW,CAAa,CACjC"}