Translator::getLoader()

LoaderInterface getLoader() Get the language line loader implementation. Return Value LoaderInterface

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::getFallback()

string getFallback() Get the fallback locale being used. 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

TranslationServiceProvider::when()

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

TranslationServiceProvider::__call()

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

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::provides()

array provides() Get the services provided by the provider. Return Value array