ArrayLoader
class ArrayLoader implements Loader
Properties
| protected array | $messages | All of the translation messages. |
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.
addMessages(string $locale, string $group, array $messages, string|null $namespace = null)
Add messages to the loader.
array
namespaces()
Get an array of all the registered namespaces.
Details
at line 19
array
load(string $locale, string $group, string|null $namespace = null)
Load the messages for the given locale.
at line 29
void
addNamespace(string $namespace, string $hint)
Add a new namespace to the loader.
at line 36
void
addJsonPath(string $path)
Add a new JSON path to the loader.
at line 43
void
addPath(string $path)
Add a new path to the loader.
at line 50
ArrayLoader
addMessages(string $locale, string $group, array $messages, string|null $namespace = null)
Add messages to the loader.
at line 62
array
namespaces()
Get an array of all the registered namespaces.