class TranslationsInstaller (View source)

Properties

protected Repository $config
protected FactoryInterface $localFactory
protected ProviderInterface $remoteProvider
protected Filesystem $fs

Methods

__construct(Repository $config, FactoryInterface $localFactory, ProviderInterface $remoteProvider, Filesystem $fs)

No description

installCoreTranslations(string $localeID)

Install a new core locale, or update an existing one.

installPackageTranslations(Package $package, string $localeID)

Install a new locale for a package, or update an existing one.

installTranslations(string $localeID, Package $package = null)

No description

Details

__construct(Repository $config, FactoryInterface $localFactory, ProviderInterface $remoteProvider, Filesystem $fs)

No description

Parameters

Repository $config
FactoryInterface $localFactory
ProviderInterface $remoteProvider
Filesystem $fs

installCoreTranslations(string $localeID)

Install a new core locale, or update an existing one.

Parameters

string $localeID

Exceptions

Exception

installPackageTranslations(Package $package, string $localeID)

Install a new locale for a package, or update an existing one.

Parameters

Package $package
string $localeID

Exceptions

Exception

private installTranslations(string $localeID, Package $package = null)

No description

Parameters

string $localeID
Package $package

Exceptions

Exception