function()

in src/assets/js/protocol-lang-switcher.js [59:73]


        function (e) {
          var newLanguage = e.target.value;
          var previousLanguage = e.target.getAttribute(
            'data-previous-language'
          );

          // support custom callback for page analytics.
          if (typeof callback === 'function') {
            callback(previousLanguage, newLanguage);
          }

          LangSwitcher.doRedirect(
            LangSwitcher.switchPath(window.location, newLanguage)
          );
        },