From e2c95650e350192c4679a31ddbf4d3114bd3377e Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 28 Sep 2026 16:29:52 +0200 Subject: [PATCH] docs(analytics): plugins: [] installs follow the admin language from EmDash 1.0.1 --- .changeset/analytics-admin-language-1-0-1.md | 5 +++++ packages/analytics/AGENTS.md | 10 +++++----- packages/analytics/README.md | 9 +++++---- 3 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 .changeset/analytics-admin-language-1-0-1.md diff --git a/.changeset/analytics-admin-language-1-0-1.md b/.changeset/analytics-admin-language-1-0-1.md new file mode 100644 index 0000000..9283109 --- /dev/null +++ b/.changeset/analytics-admin-language-1-0-1.md @@ -0,0 +1,5 @@ +--- +"@eisbachcode/emdash-plugin-analytics": patch +--- + +The README now says that a plugin registered in `plugins: []` follows the admin language on the dashboard and its pages from EmDash 1.0.1; before 1.0.1 it stays English there. The plugin code is unchanged. diff --git a/packages/analytics/AGENTS.md b/packages/analytics/AGENTS.md index 3d1e213..0e11947 100644 --- a/packages/analytics/AGENTS.md +++ b/packages/analytics/AGENTS.md @@ -40,11 +40,11 @@ at the workspace root is enough. after any change that adds a `ctx` call. - **Block Kit keys are snake_case.** Use the constructors in `src/ui/blocks.ts`; the renderer silently ignores camelCase. -- `routeCtx.ui` (locale, direction) reaches the widget and the pages only - when the plugin runs sandboxed. Registered in `plugins: []` it is - undefined there, so read `routeCtx.ui?.locale` and fall back to English; - never return empty blocks when it is missing. The editor panel gets it in - both modes, with `ui.entry`. +- `routeCtx.ui` (locale, direction) reaches the widget and the pages in + both install modes from EmDash 1.0.1; before that, a `plugins: []` + install gets it undefined there. Read `routeCtx.ui?.locale` and fall back + to English; never return empty blocks when it is missing. The editor panel + gets it in both modes on every version, with `ui.entry`. - **MCP schemas never reach the runtime.** `emdash-plugin build` strips the `mcp` property of `src/plugin.ts` from the bundle and writes the zod schemas into the manifest as JSON Schema. `src/tools/declare.ts` is diff --git a/packages/analytics/README.md b/packages/analytics/README.md index 60843a6..59e28ba 100644 --- a/packages/analytics/README.md +++ b/packages/analytics/README.md @@ -338,10 +338,11 @@ language, so a German admin reads "1.234", "18.09.2026" and "Deutschland". Two limits come from EmDash, not from this plugin: -- **Registered in `plugins: []`, the plugin stays English** on the - dashboard and its pages. EmDash 0.39 tells a plugin the admin language - there only when it runs sandboxed from the registry. The editor panel - gets it either way. +- **Before EmDash 1.0.1, the widget and the pages stay English in a + `plugins: []` install**, because EmDash passes such a plugin the admin + language there only from 1.0.1 on. Installed from the registry, the + plugin gets it on earlier versions too. The editor panel gets it either + way. - **Labels declared in the manifest stay English everywhere:** the sidebar entry, the widget title and the settings form. EmDash renders those itself and does not read plugin translations.