Language Class

Get instance

Get the instance of the Language class:

$language = Language::getInstance();

Init

Init the class:

$language->init(string $language);

Get

Get item from language:

$language->get(string $key, string $index);

Set

Set item to language:

$language->set(string $key, string|array|null $value);

Load

Load from language path:

$language->load(string|array $path);

Clear instance

Clear the instance of the Language class:

$language->clearInstance();
Edit on GitHub