Skip to content

docs(analytics): plugins: [] installs follow the admin language from EmDash 1.0.1 - #23

Merged
danielmlr merged 1 commit into
mainfrom
docs/analytics-admin-language-1.0.1
Sep 29, 2026
Merged

danielmlr merged 1 commit into
mainfrom
docs/analytics-admin-language-1.0.1

Conversation

@danielmlr

Copy link
Copy Markdown
Member

EmDash 1.0.1 includes emdash-cms/emdash#3322: a plugin registered in plugins: [] now receives the admin locale on its Block Kit pages and widgets. The analytics README still said such an install stays English on the dashboard and its pages, which is no longer true from 1.0.1 on.

Docs only; the plugin already reads routeCtx.ui?.locale and falls back to English. The patch changeset brings the corrected README to npm.

Changes

  • README, Languages: the English-only limit now applies to plugins: [] installs before EmDash 1.0.1 only.
  • Package AGENTS.md: the routeCtx.ui note says the widget and pages get it in both install modes from 1.0.1.

Verified

On a create-emdash site with emdash@1.0.1 and the published analytics 0.2.1 in plugins: [analytics], the widget and the Analytics page answer in English with the emdash-locale=en cookie and in German with emdash-locale=de ("Besuche, letzte 7 Tage", "1.186", "7 Tage").

@changeset-bot

changeset-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e2c9565

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eisbachcode/emdash-plugin-analytics Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@danielmlr
danielmlr merged commit b040a97 into main Sep 29, 2026
9 checks passed
@danielmlr
danielmlr deleted the docs/analytics-admin-language-1.0.1 branch September 29, 2026 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant