From c130338fc8482b9d1ad37514e8f2b93f5800f0f8 Mon Sep 17 00:00:00 2001 From: Shaji-Mohammed Date: Wed, 14 Oct 2026 15:45:30 -0400 Subject: [PATCH 1/2] fix(outreach): translate docs sidebar section labels to French --- apps/outreach/astro.config.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/outreach/astro.config.ts b/apps/outreach/astro.config.ts index 99ff2d39a..e653bc27e 100644 --- a/apps/outreach/astro.config.ts +++ b/apps/outreach/astro.config.ts @@ -82,7 +82,8 @@ export default defineConfig({ }, { autogenerate: { directory: 'docs/2-tutorials' }, - label: 'Tutorials' + label: 'Tutorials', + translations: { fr: 'Tutoriels' } }, { autogenerate: { directory: 'docs/3-guides' }, @@ -94,11 +95,13 @@ export default defineConfig({ }, { autogenerate: { directory: 'docs/5-reference' }, - label: 'Reference' + label: 'Reference', + translations: { fr: 'Référence' } }, { label: 'Changelog', - slug: 'docs/changelog' + slug: 'docs/changelog', + translations: { fr: 'Journal des modifications' } }, starlightTypeDocSidebarGroup ], From c6f406b5afa7abf0ce7be74724781f6728a3975a Mon Sep 17 00:00:00 2001 From: Shaji-Mohammed Date: Thu, 15 Oct 2026 13:17:50 -0400 Subject: [PATCH 2/2] fix(outreach): translate the Runtime Core API sidebar label to French --- apps/outreach/astro.config.ts | 3 ++- .../src/plugins/starlight-plugin-typedoc/index.ts | 6 ++++++ .../src/plugins/starlight-plugin-typedoc/starlight.ts | 9 ++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/apps/outreach/astro.config.ts b/apps/outreach/astro.config.ts index e653bc27e..1aedfac29 100644 --- a/apps/outreach/astro.config.ts +++ b/apps/outreach/astro.config.ts @@ -70,7 +70,8 @@ export default defineConfig({ output: 'runtime-core-docs', sidebar: { collapsed: true, - label: 'Runtime Core API' + label: 'Runtime Core API', + translations: { fr: 'API de Runtime Core' } }, tsconfig: path.resolve(runtimeCoreRoot, 'tsconfig.json') }) diff --git a/apps/outreach/src/plugins/starlight-plugin-typedoc/index.ts b/apps/outreach/src/plugins/starlight-plugin-typedoc/index.ts index eb47e903e..9398fbbaa 100644 --- a/apps/outreach/src/plugins/starlight-plugin-typedoc/index.ts +++ b/apps/outreach/src/plugins/starlight-plugin-typedoc/index.ts @@ -4,6 +4,8 @@ import type { TypeDocOptions } from 'typedoc'; import { getSidebarFromReflections, getSidebarGroupPlaceholder } from './starlight'; import { generateTypeDoc } from './typedoc'; +import type { SidebarTranslations } from './starlight'; + export type StarlightTypeDocSidebarOptions = { /** * Whether the generated documentation sidebar group should be collapsed by default. @@ -14,6 +16,10 @@ export type StarlightTypeDocSidebarOptions = { * The generated documentation sidebar group label. */ label: string; + /** + * The generated documentation sidebar group label, translated per locale. + */ + translations?: SidebarTranslations; }; export type StarlightTypeDocOptions = { diff --git a/apps/outreach/src/plugins/starlight-plugin-typedoc/starlight.ts b/apps/outreach/src/plugins/starlight-plugin-typedoc/starlight.ts index 008609dbf..5e76d9f11 100644 --- a/apps/outreach/src/plugins/starlight-plugin-typedoc/starlight.ts +++ b/apps/outreach/src/plugins/starlight-plugin-typedoc/starlight.ts @@ -31,7 +31,10 @@ export function getSidebarFromReflections( return sidebar; } - const sidebarGroup = getSidebarGroupFromReflections(options, reflections, baseOutputDirectory, baseOutputDirectory); + const sidebarGroup: SidebarGroup = { + ...getSidebarGroupFromReflections(options, reflections, baseOutputDirectory, baseOutputDirectory), + translations: options.translations + }; function replaceSidebarGroupPlaceholder(group: SidebarManualGroup): SidebarGroup { if (group.label === sidebarGroupPlaceholder.label) { @@ -238,8 +241,11 @@ export type SidebarGroup = }; collapsed?: boolean; label: string; + translations?: SidebarTranslations; }; +export type SidebarTranslations = { [locale: string]: string }; + type SidebarManualGroup = { badge?: | string @@ -251,6 +257,7 @@ type SidebarManualGroup = { collapsed?: boolean; items: (LinkItem | SidebarGroup)[]; label: string; + translations?: SidebarTranslations; }; type LinkItem = {