--- import findAllIndicesOf from '../lib/findAllIndicesOf'; import translate from '../i18n/translate'; import tBreadcrumbs from '../i18n/translations/components/breadcrumbs'; import type Locale from '../types/Locale'; import locales from '../i18n/locales'; const path = Astro.url.pathname.replace(/(? pathWithoutLocale.slice(0, n + 1)).slice(0, -1); const t = translate(locale); ---