Open Bug 1370193 Opened 3 years ago Updated 2 years ago

[Form Autofill] Support "country-name" fields with more countries and more languages

Categories

(Toolkit :: Form Autofill, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: lchang, Unassigned)

References

(Blocks 3 open bugs)

Details

(Whiteboard: [form autofill:V2])

In MVP, the "country-name" attribute only supports "US" in en-US (bug 1358944). We should extend it to support more countries in more languages after MVP lands.
We can leverage "regionNames.properties" like below.

> let regionNames = {};
> let countries = Services.strings.createBundle("chrome://global/locale/regionNames.properties").getSimpleEnumeration();
> while (countries.hasMoreElements()) {
>   let country = countries.getNext().QueryInterface(Components.interfaces.nsIPropertyElement);
>   regionNames[country.key.toUpperCase()] = country.value;	
> }
Whiteboard: [form autofill] → [form autofill:V2]
Component: Form Manager → Form Autofill
You need to log in before you can comment on or make changes to this bug.