interface Loader

Methods

array
load(string $locale, string $group, string|null $namespace = null)

Load the messages for the given locale.

void
addNamespace(string $namespace, string $hint)

Add a new namespace to the loader.

void
addJsonPath(string $path)

Add a new JSON path to the loader.

void
addPath(string $path)

Add a new path to the loader.

array
namespaces()

Get an array of all the registered namespaces.

Details

at line 12
array load(string $locale, string $group, string|null $namespace = null)

Load the messages for the given locale.

Parameters

string $locale
string $group
string|null $namespace

Return Value

array

at line 17
void addNamespace(string $namespace, string $hint)

Add a new namespace to the loader.

Parameters

string $namespace
string $hint

Return Value

void

at line 22
void addJsonPath(string $path)

Add a new JSON path to the loader.

Parameters

string $path

Return Value

void

at line 27
void addPath(string $path)

Add a new path to the loader.

Parameters

string $path

Return Value

void

at line 32
array namespaces()

Get an array of all the registered namespaces.

Return Value

array