You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intl-listformat elements can be used to format multiple strings (usually
words) with language-sensitivity. For example: “one, two, and three” in
English, or “uno, dos o tres” in Spanish. You can use <data> element’s
value attribute to specify the list of strings to format.
One or multiple <data> elements with value attributes. An array is created based on the values and used as the list argument of Intl.ListFormat’s format() method.
CSS Parts
Name
Description
value
The <span> element that contains the string of the formatted list.
One or multiple <data> elements with value attributes. An array is created based on the values and used as the list argument of Intl.ListFormat’s formatToParts() method.
CSS Parts
Name
Description
element
A <span> element that contains the string of the formatted part which type is element.
literal
A <span> element that contains the string of the formatted part which type is literal.
value
The <span> element that contains the elements that contain formatted parts of the given list.