public static function getCode($name = 'default')
    {
        if ($name == 'default') {
            $name = self::getName();
        }

        return self::codes([$name])[$name];
    }
public static function getCode($name = 'default')
    {
        if ($name == 'default') {
            $name = self::getName();
        }

        return self::codes([$name])[$name];
    }
public static function getCode ( $ name = 'default' ) { if ( $ name == 'default' ) { $ name = self :: getName ( ) ; } return self :: codes ( [ $ name ] ) [ $ name ] ; }
Returns the language code.

@param string $name

@return string
Returns the language code .