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:
- Go to https://www.wikifunctions.org/wiki/Wikifunctions:Main_Page
- Search for en-us: you should see "American English" as a result
- 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 lang | non MW supported lang |
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
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist

