posthog-js 1.32.4 → 1.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.js CHANGED
@@ -885,7 +885,7 @@ var LZString = {
885
885
  }
886
886
  };
887
887
 
888
- var version = "1.32.4";
888
+ var version = "1.33.0";
889
889
 
890
890
  // e.g. Config.DEBUG = Config.DEBUG || instance.get_config('debug')
891
891
 
@@ -1645,6 +1645,11 @@ var _info = {
1645
1645
 
1646
1646
  return parseFloat(matches[matches.length - 2]);
1647
1647
  },
1648
+ browserLanguage: function browserLanguage() {
1649
+ return navigator.language || // Any modern browser
1650
+ navigator.userLanguage // IE11
1651
+ ;
1652
+ },
1648
1653
  os: function os() {
1649
1654
  var a = userAgent;
1650
1655
 
@@ -1720,6 +1725,7 @@ var _info = {
1720
1725
  $host: window.location.host,
1721
1726
  $pathname: window.location.pathname,
1722
1727
  $browser_version: _info.browserVersion(userAgent, navigator.vendor, window.opera),
1728
+ $browser_language: _info.browserLanguage(),
1723
1729
  $screen_height: window.screen.height,
1724
1730
  $screen_width: window.screen.width,
1725
1731
  $viewport_height: window.innerHeight,