Translator::getFallback()

string getFallback() Get the fallback locale being used. Return Value string

Translator::get()

string|array|null get(string $key, array $replace = array(), string|null $locale = null, bool $fallback = true) Get the translation for the given key. Parameters string $key array $replace string|null $locale bool $fallback Return Value string|array|null

Translator::choice()

string choice(string $key, int|array|Countable $number, array $replace = array(), string $locale = null) Get a translation according to an integer value. Parameters string $key int|array|Countable $number array $replace string $locale Return Value string

Translator::addNamespace()

void addNamespace(string $namespace, string $hint) Add a new namespace to the loader. Parameters string $namespace string $hint Return Value void

Translator::addLines()

void addLines(array $lines, string $locale, string $namespace = '*') Add translation lines to the given locale. Parameters array $lines string $locale string $namespace Return Value void

Translator

Translator class Translator extends NamespacedItemResolver implements TranslatorInterface (View source) Traits Macroable

TranslationServiceProvider::__construct()

void __construct(Application $app) Create a new service provider instance. Parameters Application $app Return Value void

TranslationServiceProvider::__call()

mixed __call(string $method, array $parameters) Dynamically handle missing method calls. Parameters string $method array $parameters Return Value mixed

TranslationServiceProvider::when()

array when() Get the events that trigger this service provider to register. Return Value array

TranslationServiceProvider::register()

void register() Register the service provider. Return Value void