devela::_dep::web_sys::js_sys::Intl

Function get_canonical_locales

Source
pub fn get_canonical_locales(s: &JsValue) -> Array
Available on crate feature dep_web_sys only.
Expand description

The Intl.getCanonicalLocales() method returns an array containing the canonical locale names. Duplicates will be omitted and elements will be validated as structurally valid language tags.

MDN documentation