diff --git a/packages/i18n/strings/en.json b/packages/i18n/strings/en.json
index 92c2eaf99..794d7ea49 100644
--- a/packages/i18n/strings/en.json
+++ b/packages/i18n/strings/en.json
@@ -123,9 +123,11 @@
"media": "Media methods",
"no_docs": "This method has no documentation.",
"test": "Test",
+ "view_full": "View full types",
"macros": {
- "see": "See {path} {message}"
+ "see": "See {path} {message}",
+ "types": "Types:"
}
}
}
diff --git a/packages/website-ue/src/components/ApiMacroType.astro b/packages/website-ue/src/components/ApiMacroType.astro
index 1527543ef..17c6d867e 100644
--- a/packages/website-ue/src/components/ApiMacroType.astro
+++ b/packages/website-ue/src/components/ApiMacroType.astro
@@ -1,14 +1,18 @@
---
import { existsSync } from "fs";
import { readFile } from "fs/promises";
-import HighlightedCode from "./HighlightedCode.astro";
import { Link } from "./Link";
+import { api } from "../core/api/dynamic";
+import HighlightedCodeBlock from "./HighlightedCodeBlock.astro";
+import { Text } from "./Text";
interface Props {
value: string;
+ locale: string;
}
-const { value } = Astro.props;
+const { value, locale } = Astro.props;
+const strings = await api.strings(locale);
const roots = ["src/protos", "../closed/protos"];
@@ -111,12 +115,16 @@ stripped = stripped.replaceAll(" ", " ");
}
+
;
+export function Code({ className, variant = "ghost", ...props }: CodeProps) {
+ return (
+
+ );
}
diff --git a/packages/website-ue/src/components/HighlightedCode.astro b/packages/website-ue/src/components/HighlightedCodeBlock.astro
similarity index 100%
rename from packages/website-ue/src/components/HighlightedCode.astro
rename to packages/website-ue/src/components/HighlightedCodeBlock.astro
diff --git a/packages/website-ue/src/components/HighlightedCodeContent.tsx b/packages/website-ue/src/components/HighlightedCodeContent.tsx
index e0f1dbb97..76d224f3d 100644
--- a/packages/website-ue/src/components/HighlightedCodeContent.tsx
+++ b/packages/website-ue/src/components/HighlightedCodeContent.tsx
@@ -13,16 +13,5 @@ export function HighlightedCodeContent({ tree }: Props) {
? tree
: toJsxRuntime(tree, { Fragment, jsx, jsxs });
- return (
-
- );
+ return ;
}