import{analyzeUrlStructure as e}from"../analysis/analyzeUrlStructure.mjs";const t=async(t,n,r,i)=>{let a=await e(t,n);return i({type:`url_hasLocalizedLinks\\${r}`,status:a.hasLocalizedLinks?`success`:`warning`,data:{successDetails:a.hasLocalizedLinks?{message:`${a.localizedCount} localized links found out of ${a.totalInternalCount} internal links`,links:a.localizedLinks}:void 0,warningsDetails:a.hasLocalizedLinks?void 0:`No localized links found`}}),i({type:`url_allAnchorsLocalized\\${r}`,status:a.allAnchorsLocalized?`success`:`warning`,data:{successDetails:a.allAnchorsLocalized?!0:void 0,warningsDetails:a.allAnchorsLocalized?void 0:{message:`Some internal links are not localized`,links:a.nonLocalizedLinks}}}),a.internalUrls};export{t as checkUrlStructure};
//# sourceMappingURL=urlChecker.mjs.map