Native country and language selects in HTML #849
WebWeWantBot
started this conversation in
Wants
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ISO 3166 (for countries) and ISO 639 (for languages) are widely used international standards in information exchange. Websites routinely ask users to select a country or language, but every author must supply and maintain the full list of acceptable values individually. Although projects like Unicode CLDR provide translations and locale-appropriate sort orders for these items, authors must include all of that data themselves.
I want
<select>(or perhaps<input>) elements to have a special mode for selecting a country or a language, triggered by an attribute value, so browsers can provide a built-in, localised picker backed by ISO 3166 and ISO 639.Authors would also need to be able to specify valid values either explicitly or implicitly — by declaring only additions and exclusions from the default set — without having to supply more than the standard two- or three-letter codes. This could work similarly to
<input list="…">with<datalist>:Beta Was this translation helpful? Give feedback.
All reactions