Page MenuHomePhabricator

Wikifunctions language selector doesn't show selected language when it's not a MW supported language
Closed, ResolvedPublicBUG REPORT

Description

Description

Wikifunctions uses its own language selector to replace the ULS at the top right of the page, so that we can select language codes supported by Wikifunctions, which are a superset than the Mediawiki-supported ones.

The selector doesn't work properly when the selected lang is not MW supported.

Steps to reproduce:

  1. Go to https://www.wikifunctions.org/wiki/Wikifunctions:Main_Page
  2. Search for en-us: you should see "American English" as a result
  3. Select "American English"

Observed behavior:

  • ✅ Select "American English" and the page is loaded with uselang=en-us
  • ❌ The selector loads without a language name
MW supported langnon MW supported lang
Screenshot from 2026-02-11 18-26-21.png (951×1 px, 134 KB)
Screenshot from 2026-02-11 18-26-48.png (951×1 px, 130 KB)

Expected behavior (Acceptance criteria):

  • User should be able to search and select a language by name (multilingual) or code
  • Available languages in the selector should be the languages supported by Wikifunctions, even when they are not supported by Mediawiki
  • On language selection, the current page should be redirected to uselang=<lang-code>
  • The language component should show the currently selected language label

Completion checklist

Event Timeline

Change #1254136 had a related patch set uploaded (by Daphne Smit; author: Daphne Smit):

[mediawiki/extensions/WikiLambda@master] LanguageSelector: Show label for non-core uselang codes

https://gerrit.wikimedia.org/r/1254136

Change #1254136 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] LanguageSelector: Show label for non-core uselang codes

https://gerrit.wikimedia.org/r/1254136