{"version":3,"file":"request.mjs","names":[],"sources":["../../src/errors/request.ts"],"sourcesContent":["import { createGtNextDiagnostic } from './diagnostics';\n\nexport const createInvalidRequestLocaleWarning = (\n  locale: string,\n  defaultLocale: string\n) =>\n  createGtNextDiagnostic({\n    severity: 'Warning',\n    whatHappened: `Locale \"${locale}\" is not valid or is not supported by this app`,\n    wayOut: `The default locale \"${defaultLocale}\" will be used for this request`,\n    fix: 'Use a valid BCP 47 locale code, add a custom mapping, or configure the locale in gt-next',\n  });\n"],"mappings":";;AAEA,MAAa,qCACX,QACA,kBAEA,uBAAuB;CACrB,UAAU;CACV,cAAc,WAAW,OAAO;CAChC,QAAQ,uBAAuB,cAAc;CAC7C,KAAK;CACN,CAAC"}