Perhaps the facades will be useful to you:


use LaravelLang\Publisher\Facades\Helpers\Locales;

// List of available locations.
Locales::available(): array

// List of installed locations.
Locales::installed(): array

// Retrieving a list of protected locales.
Locales::protects(): array

// Checks if a language pack is installed.
Locales::isAvailable(string $locale): bool

// The checked locale protecting.
Locales::isProtected(string $locale): bool

// Checks whether it is possible to install the language pack.
Locales::isInstalled(string $locale): bool

// Getting the default localization name.
Locales::getDefault(): string

// Getting the fallback localization name.
Locales::getFallback(): string