navigator.language
Term side of the Card
Topic: Interact with Client
Unit title: navigator.language
Categories: Property
Explanation side of the Card
Explanation: The browser API property that returns the user's preferred language as a string, usually represented in BCP 47 language tag format, such as 'en-US'. It's useful for localizing content based on the user's language preferences.
Browser compatibility:
- The chrome browser supports this feature starting from version 1
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 1
- The safari browser supports this feature starting from version 1
Availability: