From 0e57943d33193fa5703e345c63b350319a2f7592 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com>
Date: Sun, 15 Mar 2026 23:29:33 -0500
Subject: [PATCH] feat: cleaner api rendering
---
packages/i18n/strings/en.json | 3 ++-
packages/website-ue/src/components/ApiGroup.astro | 14 ++++++++++++--
.../src/components/MarkdownCustom/index.tsx | 8 +++++---
.../website-ue/src/components/ToolBanner.astro | 1 -
.../src/pages/[...locale]/api/index.astro | 11 +++++++++--
5 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/packages/i18n/strings/en.json b/packages/i18n/strings/en.json
index 41f03b9e8..ffecd6cd3 100644
--- a/packages/i18n/strings/en.json
+++ b/packages/i18n/strings/en.json
@@ -120,6 +120,7 @@
"api": {
"json": "JSON methods",
"pb": "Protocol Buffer methods",
- "media": "Media methods"
+ "media": "Media methods",
+ "no_docs": "This method has no documentation."
}
}
diff --git a/packages/website-ue/src/components/ApiGroup.astro b/packages/website-ue/src/components/ApiGroup.astro
index b209e3593..7e8b9ff8b 100644
--- a/packages/website-ue/src/components/ApiGroup.astro
+++ b/packages/website-ue/src/components/ApiGroup.astro
@@ -1,14 +1,17 @@
---
import type { CollectionEntry } from "astro:content";
+import { api } from "../core/api/dynamic";
import { Code } from "./Code";
import { Heading } from "./Heading";
import { MarkdownCustom } from "./MarkdownCustom";
interface Props {
+ locale: string;
apis: CollectionEntry<"api">[];
}
-const { apis } = Astro.props;
+const { apis, locale } = Astro.props;
+const strings = await api.strings(locale);
---
@@ -28,7 +35,10 @@ const { apis } = Astro.props;
{api.id}
-