Web features explorer

Intl.Locale

Widely available since 2023-03-16
Tags: javascript Groups: JavaScript > Internationalization

The Intl.Locale API parses Unicode locale identifiers, with language, region, and script codes, such as zh-Hans-CN or en-GB.

Learning resources on MDN

Browser support