import{getPathnameForLocale as r}from"@redocly/theme/core/utils";import{useGlobalData as c}from"../../useGlobalData";import{useL10nConfig as n}from"../useL10nConfig";const f=()=>{const s=c()||{},{defaultLocale:o,currentLocale:t,locales:a}=n();let e=Object.values(s?.products||{});return o&&o!==t&&(e=e.map(l=>({...l,link:r(l.link,o,t,a),slug:r(l.slug,o,t,a)}))),e};export{f as useProducts};
