src/Language/Translator.php
protected function getFileTranslations($locale, $translatePath) {
        $fileToInclude = $translatePath.$locale.'.php';
        if (file_exists($fileToInclude)) {
            /** @noinspection PhpIncludeInspection */
            require $fileToInclude;
            return $translation;
        }  else {
            throw new \InvalidArgumentException('Invalid path file');
        }
    }
protected function getFileTranslations($locale, $translatePath) {
        $fileToInclude = $translatePath.$locale.'.php';
        if (file_exists($fileToInclude)) {
            /** @noinspection PhpIncludeInspection */
            require $fileToInclude;
            return $translation;
        }  else {
            throw new \InvalidArgumentException('Invalid path file');
        }
    }
Get the translation array.

@param string $locale
@param string $translatePath

@throws \InvalidArgumentException

@returns array of translations