class TranslationsChecker (View source)

Properties

protected Application $app
protected FactoryInterface $localFactory
protected ProviderInterface $remoteProvider

Methods

__construct(Application $app, FactoryInterface $localFactory, ProviderInterface $remoteProvider)

No description

getPackagesTranslations(bool $onlyInstalled = false)

No description

computeUpdates(array $localStats, array $remoteStats, Package $package = null)

No description

Details

__construct(Application $app, FactoryInterface $localFactory, ProviderInterface $remoteProvider)

Parameters

Application $app
FactoryInterface $localFactory
ProviderInterface $remoteProvider

LocaleStatus getCoreTranslations()

Return Value

LocaleStatus

PackageLocaleStatus[] getPackagesTranslations(bool $onlyInstalled = false)

Parameters

bool $onlyInstalled

Return Value

PackageLocaleStatus[]

PackageLocaleStatus getPackageTranslations(Package $package)

Parameters

Package $package

Return Value

PackageLocaleStatus

private PackageLocaleStatus|LocaleStatus computeUpdates(array $localStats, array $remoteStats, Package $package = null)

Parameters

array $localStats
array $remoteStats
Package $package

Return Value

PackageLocaleStatus|LocaleStatus