src/Services/Translations/Reader.php
public function pathToFile($file, $locale): string
    {
        return resource_path('lang'.DIRECTORY_SEPARATOR.(is_a($locale, Locale::class) ? $locale->iso6391() : $locale).DIRECTORY_SEPARATOR.$file.'.php');
    }
public function pathToFile($file, $locale): string
    {
        return resource_path('lang'.DIRECTORY_SEPARATOR.(is_a($locale, Locale::class) ? $locale->iso6391() : $locale).DIRECTORY_SEPARATOR.$file.'.php');
    }
public function pathToFile ( $ file , $ locale ) : string { return resource_path ( 'lang' . DIRECTORY_SEPARATOR . ( is_a ( $ locale , Locale :: class ) ? $ locale -> iso6391 ( ) : $ locale ) . DIRECTORY_SEPARATOR . $ file . '.php' ) ; }
Retrieves the real path to a translation file.

@param $file
@param $locale

@return string
Retrieves the real path to a translation file .