{"version":3,"file":"getLocale.mjs","names":[],"sources":["../../src/request/getLocale.ts"],"sourcesContent":["import { use } from '../utils/use';\nimport { getAsyncConditionStore } from '../condition-store/AsyncConditionStore';\n\n/**\n * Gets the user's current locale.\n *\n * @returns {Promise<string>} The user's locale, e.g., 'en-US'.\n *\n * @example\n * const locale = await getLocale();\n * console.log(locale); // 'en-US'\n */\nexport function getLocale(): Promise<string> {\n  return getAsyncConditionStore().getLocale();\n}\n\nexport function useLocale() {\n  return use(getLocale());\n}\n"],"mappings":";;;;;;;;;;;;AAYA,SAAgB,YAA6B;AAC3C,QAAO,wBAAwB,CAAC,WAAW;;AAG7C,SAAgB,YAAY;AAC1B,QAAO,IAAI,WAAW,CAAC"}