The language switcher redirection was built as a temporary solution, but has now been present for over a year. We should remove the feature flag, as retaining it adds additional complexity to the skin and adds risk to deployments (e.g. it could be deployed without the language switcher where needed). The logic should be identical to the existing $wgVectorLanguageInHeader configuration, we don't need both.
Given our recent flurry of activity with indicators it would also be a good time to check in with a designert to see whether this should now be replaced with an indicator, given original designs preferred that.
Acceptance criteria
- Remove VectorLanguageAlertInSidebar feature flag, and retain the existing behaviour when it's true. e.g. it should not be possible to remove the alert via configuration.
- Talk to designer about whether it should be replaced with indicators. Create a ticket if necessary.
Developer notes
- Remove related code in patch https://gerrit.wikimedia.org/r/c/mediawiki/skins/Vector/+/744872:
- Comments marked by T295555 in the following files indicate what sections can be removed:
- ../Vector/includes/SkinVector.php
- ../Vector/resources/skins.vector.styles/components/Sidebar.less
- ../Vector/includes/templates/Sidebar.mustache
- Comments marked by T295555 in the following files indicate what sections can be removed:
QA Steps
- Visit https://en.wikipedia.beta.wmflabs.org/wiki/Dog .
- Verify that language alert is in main menu
- Visit https://en.wikipedia.beta.wmflabs.org/wiki/Main_Page
- Verify that the language alert is in main menu
- Visit https://en.wikipedia.beta.wmflabs.org/wiki/Wiojfojafaw
- Verify that the language alert is NOT in the main menu
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T297237#8817530 |
2 | ✅ | T297237#8817530 |
3 | ✅ | T297237#8817530 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T297237#8829690 |
2 | ✅ | T297237#8829690 |
3 | ✅ | T297237#8829690 |