As a mobile Wikidata visitor, I don’t want to see language fallback indicators if the fallback is just within language variants, e. g. from British or Canadian English (en-gb, en-ca) to “English” (en).
Problem:
Language fallback indicators for variant fallbacks are hidden on desktop (implemented in T174318 and since then fixed in a few more places), but not on mobile. The relevant styles are currently in the desktop-only wikibase.common ResourceLoader module.
Tech note: T325084 splits wikibase.common into two modules; the styles that hide variant fallback indicators should then move from wikibase.desktop to wikibase.alltargets. This also means that a bunch of places can stop loading the more heavyweight wikibase.desktop module – history views, Special:NewLexeme etc. only need the link styles from wikibase.alltargets.
Example:
This en-ca mobile item view or this en-ca mobile diff shows the indicators for the fallback from Canadian English to English:
Screenshots/mockups:
BDD
GIVEN I am looking at the mobile version of the site
AND my user interface language is a “variant” language
WHEN looking at item links where the label fell back to the “base” language
THEN there is no visible fallback indicator
Acceptance criteria:
- Language fallback indicators for variant fallbacks aren’t shown on mobile.
- Language fallback indicators for non-variant fallbacks are still shown everywhere, of course.
Open questions: