--- import { slugToLocaleData } from '../utils/slugs'; import { useTranslations } from '../utils/translations'; import { processFileTree } from './rehype-file-tree'; const slug = Astro.url.pathname.replace(/^\//, '').replace(/\/$/, ''); const t = useTranslations(slugToLocaleData(slug).locale); const fileTreeHtml = await Astro.slots.render('default'); const html = processFileTree(fileTreeHtml, t('fileTree.directory')); ---