diff --git a/.changeset/public-women-behave.md b/.changeset/public-women-behave.md new file mode 100644 index 000000000..d8888928b --- /dev/null +++ b/.changeset/public-women-behave.md @@ -0,0 +1,5 @@ +--- +"@emdash-cms/admin": patch +--- + +Fixes the long tail of untranslated English strings in the admin UI: settings panels, marketplace, sandboxed-plugin host, auth flows, taxonomy/menu management, and lib/api fallback messages. After this PR, EmDash admin UI is fully localizable across all known surfaces. diff --git a/packages/admin/src/components/BlockKitFieldWidget.tsx b/packages/admin/src/components/BlockKitFieldWidget.tsx index b869eafde..519312652 100644 --- a/packages/admin/src/components/BlockKitFieldWidget.tsx +++ b/packages/admin/src/components/BlockKitFieldWidget.tsx @@ -1,5 +1,6 @@ import { Input, Switch } from "@cloudflare/kumo"; import type { Element } from "@emdash-cms/blocks"; +import { useLingui } from "@lingui/react/macro"; import * as React from "react"; import { BlockKitMediaPickerField } from "./BlockKitMediaPickerField"; @@ -65,6 +66,7 @@ function BlockKitFieldElement({ value: unknown; onChange: (actionId: string, value: unknown) => void; }) { + const { t } = useLingui(); switch (element.type) { case "text_input": return ( @@ -105,7 +107,7 @@ function BlockKitFieldElement({ value={typeof value === "string" ? value : ""} onChange={(e) => onChange(element.action_id, e.target.value)} > - + {options.map((opt) => (