As an editor I want to see the name of the spelling variant in the spelling variant selector in order to better understand which language I am selecting.
Problem:
Right now we are only showing the language code. That is not as helpful as it could be for people. We should in addition show the spelling variant name.
Screenshots/mockups:
This is what it currently looks like in the new page:
This is what it currently looks like on the old page:
BDD
GIVEN a spelling variant selector is shown on Special:NewLexeme
WHEN entering a language code or spelling variant name
THEN the selector shows matches with both their language code and spelling variant name
Acceptance criteria:
- spelling variant names are shown in addition to language codes
Notes
- Matching is not fuzzy - Tun would open Tunisia but tsa would not
- Matching looks at each word in the list, i.e. Tunisian Arabic would display if arabic entered
- Do not need to match the name of the language in that language. only interface language supported (i.e. if interface is english, 日本語 would not work)
- not case sensitive
- same source of language names as the current special page