The sidebar donation links are defined in the message sitesupport-url as
https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign={{SERVERNAME}}&uselang={{USERLANGUAGE}}
e.g. https://fr.wikipedia.org/wiki/MediaWiki:Sitesupport-url where it appears correctly with uselang=fr
However the actual links in the sidebar/top menu always have uselang=en resulting in the English language donation page being shown. This occurs:
- on all projects, not just wikipedias
- on both desktop and mobile sites
- logged out or logged in
- regardless of my browser language settings
Requirement
The uselang parameter in the donation link (sitesupport-url) should reflect the current user interface language ({{USERLANGUAGE}}) rather than defaulting to English (en). This ensures that users are directed to a donation page localized to their language across all Wikimedia projects and platforms (desktop and mobile), regardless of login status or browser settings.
BDD
Feature: Correct language parameter in sidebar donate link Scenario: Logged-out user sees localized donate link Given I am a logged-out user on any Wikimedia project And the interface language is set to a non-English language When I inspect the donate link in the sidebar or top menu Then the URL contains "uselang=<user language>"
Test Steps
Test Case 1: Logged-out user sees localized donate link
- Open a private/incognito window.
- Navigate to a Wikimedia project with a non-English language interface (e.g., https://fr.wikipedia.org).
- Inspect the “Donate” link in the sidebar (desktop) or top menu (mobile).
- AC1: Confirm the uselang parameter in the URL matches the site language (e.g., uselang=fr), not uselang=en.
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T393601#10842279 |
