Page MenuHomePhabricator

Language fallback for country variants behaves strangely when linking to Wikidata items
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

The links back to the item use the en label.

What should have happened instead?:

The links back to the item use the zh-hant label.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

It appears to use the values for each level in the Babel box in alphabetical order.
It doesn't take fallback languages or language variants into account, even when those codes are explicitly included.
This means we currently cannot rely on language fallback as a way to handle country variants.