Steps to replicate the issue (include links if applicable):
- Set "zh-Hant-TW" / "zh-TW" as the browser language
- This will have "zh-TW,zh;q=0.9" as Accept-Language in browser
- "zh;q=0.9" is the thing that usually got automatically added by the browser
- Visit any MediaWiki wiki that have zh-tw variant disabled by $wgDisabledVariants
- For example, https://zh.wikisource.org/wiki/
What happens?:
- It detected "zh" in the Accept-Language and didn't fallback to zh-Hant
What should have happened instead?:
- It should lower the priority of the unconverted-mix variant "zh".
- It should have the detected "zh-TW" fallback to zh-Hant.
Software version (skip for WMF-hosted wikis like Wikipedia):
- MediaWiki 1.40.0-wmf.24 ( ceec89e )
Other information (browser name/version, screenshots, etc.):