{"version":3,"file":"registerLocale.mjs","names":[],"sources":["../../src/request/registerLocale.ts"],"sourcesContent":["import { getAsyncConditionStore } from '../condition-store/AsyncConditionStore';\nimport { resolveLocaleOrDefault } from './localeValidation';\n\n/**\n * Set the locale for the current request context.\n * Use this in Route Handlers and OG image handlers where next/root-params is unavailable.\n * Must be called at the top of the request handler before any other gt-next functions.\n *\n * @param locale - A locale candidate to use for this request.\n */\nexport function registerLocale(locale: string): void {\n  getAsyncConditionStore().enterWith(resolveLocaleOrDefault(locale));\n}\n"],"mappings":";;;;;;;;;;AAUA,SAAgB,eAAe,QAAsB;AACnD,yBAAwB,CAAC,UAAU,uBAAuB,OAAO,CAAC"}