diff --git a/src/components/docs/DocsSidebar.astro b/src/components/docs/DocsSidebar.astro index 9279e93..49a1775 100644 --- a/src/components/docs/DocsSidebar.astro +++ b/src/components/docs/DocsSidebar.astro @@ -2,6 +2,7 @@ import { loadDocsMeta, sectionIconSvg, sectionLabel } from "./nav"; import { localePath, type Locale } from "../../i18n/config"; import { guides } from "../../i18n/guides/content"; +import { explainers } from "../../i18n/guides/explainers"; /** * Aiven-style docs sidebar: grouped sections with line icons, a Quickstart @@ -14,9 +15,11 @@ interface Props { current?: string; /** Slug of the current Get Started guide, if rendering a guide page. */ guideSlug?: string; + /** Slug of the current explainer article, if rendering an article page. */ + articleSlug?: string; } -const { locale, current, guideSlug } = Astro.props; +const { locale, current, guideSlug, articleSlug } = Astro.props; const meta = loadDocsMeta(); const quickstartLabel = @@ -26,6 +29,8 @@ const quickstartLabel = ? "Essayez keel en cinq minutes" : "Try keel in five minutes"; const guidesLabel = locale === "ar" ? "دليل البداية" : locale === "fr" ? "Premiers pas" : "Get started guides"; +const explainersLabel = + locale === "ar" ? "شروحات معمّقة" : locale === "fr" ? "Approfondissements" : "Deep explainers"; ---