JavaScript Intl ListFormat supportedLocalesOf() Method Last Updated : 25 May, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report The Intl.ListFormat.supportedLocalesOf() method is an inbuilt method in JavaScript that returns an array containing those of the provided locales that are supported in list formatting. Syntax: Intl.ListFormat.supportedLocalesOf(locales, options) Parameters: This method accepts two parameters as mentioned above and described below: locales: This parameter holds a string with a BCP 47 language tag or an array of such strings.options: It is an optional parameter. It is an object that has localeMatcher property. localeMatcher is the locale-matching algorithm to use. It has the values "lookup" and "best fit". Return value: This method returns an array of strings representing the subset of the given locale tags that are supported in list formatting. The below examples illustrate the Intl.ListFormat.supportedLocalesOf() method in JavaScript: Example 1: In this example, we will see the basic use of the Intl.ListFormat.supportedLocalesOf() method in JavaScript. javascript <script> const geeks = ['ban', 'id-u-co-pinyin', 'de-ID']; const result = { localeMatcher: 'lookup' }; let val = Intl.ListFormat.supportedLocalesOf(geeks, result).join(', '); console.log(val); </script> Output: "id-u-co-pinyin, de-ID" Example 2: In this example, we will see the basic use of the Intl.ListFormat.supportedLocalesOf() method in JavaScript. javascript <script> const geeks = ['ban', 'id-u-co-pinyin', 'de-ID']; let val = Intl.ListFormat.supportedLocalesOf(geeks).join(', '); console.log(val); </script> Output: "id-u-co-pinyin, de-ID" We have a complete list of Javascript Intl methods, to check those please go through the Javascript Intl Complete Reference article. Supported Browsers: The browsers supported by Intl.ListFormat.supportedLocalesOf() method are listed below: Google Chrome 72 and aboveEdge 79 and aboveFirefox 78 and aboveOpera 60 and aboveSafari 14.1 and above Comment More infoAdvertise with us Next Article JavaScript Intl ListFormat supportedLocalesOf() Method S SHUBHAMSINGH10 Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Methods JavaScript-Intl Similar Reads JavaScript Intl Collator supportedLocalesOf() Method The Intl.Collator.supportedLocalesOf() method is an inbuilt method in JavaScript that is used to return an array containing those of the provided locales that are supported in collation without having to fall back to the runtime's default locale. Syntax: Intl.Collator.supportedLocalesOf(locales, opt 2 min read JavaScript Intl ListFormat resolvedOptions() Method The Intl.ListFormat.prototype.resolvedOptions() method is an inbuilt method in JavaScript that returns a new object that has characteristics that correspond to the locale and style formatting choices that were determined during the creation of the existing ListFormat object Syntax: listFormat.resolv 1 min read JavaScript Intl DateTimeFormat supportedLocalesOf() Method The Intl.DateTimeFormat.supportedLocalesOf() method is an inbuilt method in JavaScript that returns an array containing those of the provided locales that are supported in date and time formatting. Syntax: Intl.DateTimeFormat.supportedLocalesOf(locales, options) Parameters: This method accepts two p 2 min read PHP | IntlCalendar getAvailableLocales() Function The IntlCalendar::getAvailableLocales() function is an inbuilt function in PHP which is used to display an array list of locales for which calendars are installed. Syntax: Object oriented style array IntlCalendar::getAvailableLocales( void ) Procedural style array intlcal_get_available_locales( void 1 min read NumberFormat getAvailableLocales() method in Java with Examples The getAvailableLocales() method is a built-in method of the java.text.NumberFormat returns an array of locales for which localized NumberFormat instances are available. All the returned values thus represents the local supported by Java runtime. Syntax: public static Locale[] getAvailableLocales() 2 min read Like