From 43d35299f7a0e2e8cc016fc829c076f166271010 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 1 Apr 2026 07:23:02 -0500 Subject: [PATCH] allow custom add button text via uiSchema --- web/src/components/config-form/theme/components/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/components/config-form/theme/components/index.tsx b/web/src/components/config-form/theme/components/index.tsx index 85519313ef..2f8fe376ea 100644 --- a/web/src/components/config-form/theme/components/index.tsx +++ b/web/src/components/config-form/theme/components/index.tsx @@ -60,7 +60,9 @@ export function AddPropertyButton({ className="gap-2" > - {t("button.add", { ns: "common", defaultValue: "Add" })} + {typeof uiSchema?.["ui:options"]?.addButtonText === "string" + ? uiSchema["ui:options"].addButtonText + : t("button.add", { ns: "common", defaultValue: "Add" })} ); }