public function languageString()
    {
        $data = $data1 = $data2 = [];
        $language = $this->getLang();
        if (file_exists(route()->locale."{$language}.php")) {
            $data1 += require route()->locale."{$language}.php";
        }
        $path = route()->com;
        $disk_scan = array_diff(scandir($path), ['..', '.']);
        foreach ($disk_scan as $scans) {
            if (file_exists($path.$scans."/Locale/{$language}.php")) {
                $data2 += require $path.$scans."/Locale/{$language}.php";
            }
        }
        $data = array_merge($data1, $data2);

        return $data;
    }
public function languageString()
    {
        $data = $data1 = $data2 = [];
        $language = $this->getLang();
        if (file_exists(route()->locale."{$language}.php")) {
            $data1 += require route()->locale."{$language}.php";
        }
        $path = route()->com;
        $disk_scan = array_diff(scandir($path), ['..', '.']);
        foreach ($disk_scan as $scans) {
            if (file_exists($path.$scans."/Locale/{$language}.php")) {
                $data2 += require $path.$scans."/Locale/{$language}.php";
            }
        }
        $data = array_merge($data1, $data2);

        return $data;
    }
public function languageString ( ) { $ data = $ data1 = $ data2 = [ ] ; $ language = $ this -> getLang ( ) ; if ( file_exists ( route ( ) -> locale . "{$language}.php" ) ) { $ data1 += require route ( ) -> locale . "{$language}.php" ; } $ path = route ( ) -> com ; $ disk_scan = array_diff ( scandir ( $ path ) , [ '..' , '.' ] ) ; foreach ( $ disk_scan as $ scans ) { if ( file_exists ( $ path . $ scans . "/Locale/{$language}.php" ) ) { $ data2 += require $ path . $ scans . "/Locale/{$language}.php" ; } } $ data = array_merge ( $ data1 , $ data2 ) ; return $ data ; }
Include lang string file.

@since 1.0.0

@return string
Include lang string file .