class ArrayLoader implements Loader (View source)
| protected array | $messages | All of the translation messages. |
| 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. | |
| $this | 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. |
Load the messages for the given locale.
Add a new namespace to the loader.
Add a new JSON path to the loader.
Add messages to the loader.
Get an array of all the registered namespaces.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Translation/ArrayLoader.html