original_string: public function activeLocale()
      {
          $active = $this->getCore()->session()->get(static::ACTIVE_LOCALE_SESSION_KEY);
  
          if ($active && in_array($active, $this->availableLocales())) {
              return $active;
          }
  
          return $this->defaultLocale();
      }
code: public function activeLocale()
      {
          $active = $this->getCore()->session()->get(static::ACTIVE_LOCALE_SESSION_KEY);
  
          if ($active && in_array($active, $this->availableLocales())) {
              return $active;
          }
  
          return $this->defaultLocale();
      }
code_tokens: public function activeLocale ( ) { $ active = $ this -> getCore ( ) -> session ( ) -> get ( static :: ACTIVE_LOCALE_SESSION_KEY ) ; if ( $ active && in_array ( $ active , $ this -> availableLocales ( ) ) ) { return $ active ; } return $ this -> defaultLocale ( ) ; }
docstring: Returns currently active translation locale.
  
  @return string
docstring_tokens: Returns currently active translation locale .