class Illuminate / Translation / ArrayLoader
You are viewing an older version of the documentation. For the latest, please visit master documentation.

ArrayLoader

Implements

Properties

protected

$messages array

All of the translation messages.

Default: []

Methods

public

load ( $locale , $group , $namespace ) : array

Load the messages for the given locale.

Parameters

  • $locale string
  • $group string
  • $namespace string|null
public

addNamespace ( $namespace , $hint ) : void

Add a new namespace to the loader.

Parameters

  • $namespace string
  • $hint string
public

addJsonPath ( $path ) : void

Add a new JSON path to the loader.

Parameters

  • $path string
public

addMessages ( $locale , $group , array $messages , $namespace ) : $this

Add messages to the loader.

Parameters

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

namespaces ( ) : array

Get an array of all the registered namespaces.