{"version":3,"file":"link.mjs","names":[],"sources":["../../src/errors/link.ts"],"sourcesContent":["import { createGtNextDiagnostic } from './diagnostics';\n\nexport const createLocalePrefixedHrefWarning = (href: string, locale: string) =>\n  createGtNextDiagnostic({\n    severity: 'Warning',\n    whatHappened: `The href \"${href}\" already starts with the locale \"${locale}\" and was prefixed again`,\n    why: 'Link and useLocalizeHref() expect unlocalized paths',\n    fix: 'Pass the path without its locale prefix',\n    wayOut: 'pass locale={false} to leave the href unchanged',\n  });\n"],"mappings":";;AAEA,MAAa,mCAAmC,MAAc,WAC5D,uBAAuB;CACrB,UAAU;CACV,cAAc,aAAa,KAAK,oCAAoC,OAAO;CAC3E,KAAK;CACL,KAAK;CACL,QAAQ;CACT,CAAC"}