Polyglot\Localization\Services\Extractor::getLocaleFile PHP Метод

getLocaleFile() публичный Метод

Get the path to a locale's PO file
public getLocaleFile ( string $locale ) : string
$locale string
Результат string
    public function getLocaleFile($locale)
    {
        $directory = $this->app['polyglot.translator']->getLocaleFolder($locale);
        $translated = $this->app['config']->get('polyglot::file');
        $translated = $directory . '/' . strtr($translated, ['{domain}' => $this->app['polyglot.translator']->getDomain()]);
        return $translated;
    }