Displaying language variants as distinct languages in the translator language selector is awkward and repetitive. Allowing users to first select a language and then display radio buttons for choosing a variant below the relevant translation box, if relevant, provides a better user interface.
The variants would be sorted alphabetically and the first valid option would be selected. Options would continue to be persisted and variant preferences would be stored. If there is only one variant available for a given language, it would be displayed and checked by default.
The proposed implementation would require modification for mobile users since both the language selector and radio buttons would interfere with the flow of the page and not both fit on the same viewport, likely causing confusion. A possible alternative is including the variants as a regular language in the language dropdown for mobile.
Migrated to Github.