Steps to replicate the issue (include links if applicable):
- Set the UI language to de-formal
- Run a query which uses [AUTO_LANGUAGE] to select labels (e.g. this query)
What happens?:
[AUTO_LANGUAGE] is replaced by the current UI language, without any fallbacks included.
In this case, de-formal is a UI-only language, so no labels are shown.
What should have happened instead?:
When replacing [AUTO_LANGUAGE] with the current UI language, fallback languages are included, so that the user sees the same labels that they would see on-wiki (e.g. here).
In this case, it should fall back to de, mul and en (see Special:MyLanguageFallbackChain)
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Related ticket: T299525 - I don't think this is the same thing because you can manually insert fallbacks when providing specific language codes. The whole point of using [AUTO_LANGUAGE] is that we don't know what the language will be, therefore we can't include the right fallbacks ourselves.