protected function getLanguages(array $paths = [])
    {
        // Get language path
        $dir_lang = $this->getLangPath();

        // Only use the default locale
        if ($this->config('default_locale_only')) {
            return [
                $this->default_locale => "{$dir_lang}/{$this->default_locale}",
            ];
        }

        // Get all language paths
        foreach (glob("{$dir_lang}/*", GLOB_ONLYDIR) as $path) {
            $paths[basename($path)] = $path;
        }

        return $paths;
    }
protected function getLanguages(array $paths = [])
    {
        // Get language path
        $dir_lang = $this->getLangPath();

        // Only use the default locale
        if ($this->config('default_locale_only')) {
            return [
                $this->default_locale => "{$dir_lang}/{$this->default_locale}",
            ];
        }

        // Get all language paths
        foreach (glob("{$dir_lang}/*", GLOB_ONLYDIR) as $path) {
            $paths[basename($path)] = $path;
        }

        return $paths;
    }
protected function getLanguages ( array $ paths = [ ] ) { // Get language path $ dir_lang = $ this -> getLangPath ( ) ; // Only use the default locale if ( $ this -> config ( 'default_locale_only' ) ) { return [ $ this -> default_locale => "{$dir_lang}/{$this->default_locale}" , ] ; } // Get all language paths foreach ( glob ( "{$dir_lang}/*" , GLOB_ONLYDIR ) as $ path ) { $ paths [ basename ( $ path ) ] = $ path ; } return $ paths ; }
Get all languages and their's paths.

@param array $paths

@return array
Get all languages and their s paths .