Cache tokens from /api/send and share tokens were both signed with the same secret and parsed without distinguishing claim types, allowing a public cache token to be replayed as x-umami-share-token to read any website's analytics. Add explicit token type claims (share/cache) and require the matching type when parsing each.
- Add 12 missing translation keys to fa-IR.json
- Set lang and dir on document.documentElement via useEffect on locale
change, fixing the hardcoded lang="en" and ensuring both attributes
are on the same element and applied on initial load
Use .finally() instead of .then() so internal link navigation is
always restored after e.preventDefault(), even if the tracking
request rejects (e.g. server down or a throwing beforeSend callback).
Fixes#4304
Add crossOrigin="use-credentials" so the browser includes cookies
when fetching /site.webmanifest. Without it the manifest request is
sent unauthenticated and gets redirected to the login page by
cookie-based auth proxies (ALB OIDC, OAuth2 Proxy, Cloudflare
Access), which the browser then blocks against the app's own CSP.
PR #4262 introduced a DataGrid view-toggle button with two hardcoded
English tooltip strings ("Switch to table view" / "Switch to card view")
and explicitly deferred translation to a follow-up. Without the keys in
the locale JSON files, next-intl would surface the raw label paths at
runtime for any non-English user once the strings move to t().
Adds switchToTableView and switchToCardView label entries in
messages.ts, swaps the hardcoded strings in DataGrid.tsx for
t(labels.x), and populates "switch-to-table-view" and
"switch-to-card-view" in all 52 locale JSON files with proper
translations (no English fallbacks).
Verified in Playwright that the toggle tooltip renders the expected
translated string in en-US, fr-FR and ja-JP via the same useMessages
pipeline already used for the search field placeholder, with no
MISSING_MESSAGE errors in the console.