import{analyzeLinguisticStructure as e}from"../analysis/analyzeLinguisticStructure.mjs";const t=async(t,n,r,i)=>{let a=e(t,n,r),o=a.alternates;return i({type:`url_hreflang\\${n}`,status:a.hreflangs.length>0?`success`:`warning`,data:{successDetails:a.hreflangs.length>0?a.hreflangs:void 0,warningsDetails:a.hreflangs.length===0?`No hreflang tags found`:void 0}}),i({domainData:{discoveredLocales:Array.from(r)}}),i({type:`url_hasXDefault\\${n}`,status:a.hasXDefault?`success`:`error`,data:{successDetails:a.hasXDefault?!0:void 0,errorsDetails:a.hasXDefault?void 0:`Missing x-default hreflang link`}}),o};export{t as checkLinguisticStructure};
//# sourceMappingURL=linguisticChecker.mjs.map