ArrayLoader (Translation)

ArrayLoader

class ArrayLoader implements LoaderInterface (View source)

Methods

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

Load the messages for the given locale.

void addNamespace(string $namespace, string $hint)

Add a new namespace 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.

Details

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

Load the messages for the given locale.

Parameters

string $locale
string $group
string $namespace

Return Value

array

void addNamespace(string $namespace, string $hint)

Add a new namespace to the loader.

Parameters

string $namespace
string $hint

Return Value

void

$this addMessages(string $locale, string $group, array $messages, string|null $namespace = null)

Add messages to the loader.

Parameters

string $locale
string $group
array $messages
string|null $namespace

Return Value

$this

array namespaces()

Get an array of all the registered namespaces.

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Translation/ArrayLoader.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部