Intl.getCanonicalLocales()

Term side of the Card
Topic: Intl
Unit title: Intl.getCanonicalLocales()
Categories: Method
Explanation side of the Card

Explanation: The static method that returns an array of canonicalized locale identifiers. It standardizes locale strings, ensuring consistency across different operations that rely on locale information.

Browser compatibility:
  • The chrome browser supports this feature starting from version 54
  • The edge browser supports this feature starting from version 16
  • The firefox browser supports this feature starting from version 48
  • The safari browser supports this feature starting from version 10.1
Availability: