How to use the mixpanel.language function in mixpanel

To help you get started, we’ve selected a few mixpanel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Wyliodrin / WyliodrinSTUDIO / source / public / controllers / TranslateController.js View on Github external
this.changeLanguage = function (langKey) {
            $translate.use(langKey);
            var languagecode = $translate.proposedLanguage() || $translate.use();
            console.log (languagecode);
              $scope.language = {
                code: languagecode,
                title: available[languagecode]
              };
            mixpanel.language (langKey);
            library.storeValue ('language', languagecode);
          };
    });
github Wyliodrin / WyliodrinSTUDIO / source / public / controllers / TranslateController.js View on Github external
library.retrieveValue ('language', null, function (language)
      {
        if (language)
        {
          that.changeLanguage (language);
        }
        else
        {
          mixpanel.language ($translate.use ());
        }
      });

mixpanel

A simple server-side API for mixpanel

MIT
Latest version published 1 year ago

Package Health Score

65 / 100
Full package analysis