src/helpers/BaseYii.php
public static function getSourceLocaleString(string $default = 'en-US'): string
    {
        $view = static::get('view', null, false);

        return $view ? (string)$view->getSourceLocale() : $default;
    }
public static function getSourceLocaleString(string $default = 'en-US'): string
    {
        $view = static::get('view', null, false);

        return $view ? (string)$view->getSourceLocale() : $default;
    }
public static function getSourceLocaleString ( string $ default = 'en-US' ) : string { $ view = static :: get ( 'view' , null , false ) ; return $ view ? ( string ) $ view -> getSourceLocale ( ) : $ default ; }
Returns current source locale if set or default.
@return string
Returns current source locale if set or default .