Метод |
Описание |
|
addNamespace ( string $namespace, string $hint ) : void |
Add a new namespace to the loader. |
|
choice ( string $key, integer | array | Countable $number, array $replace = [], string $locale = null ) : string |
Get a translation according to an integer value. |
|
get ( string $key, array $replace = [], string | null $locale = null, boolean $fallback = true ) : string | array | null |
Get the translation for the given key. |
|
getFallback ( ) : string |
Get the fallback locale being used. |
|
getLoader ( ) : Illuminate\Translation\LoaderInterface |
Get the language line loader implementation. |
|
getLocale ( ) : string |
Get the default locale being used. |
|
getSelector ( ) : Symfony\Component\Translation\MessageSelector |
Get the message selector instance. |
|
has ( string $key, string | null $locale = null, boolean $fallback = true ) : boolean |
Determine if a translation exists. |
|
hasForLocale ( string $key, string | null $locale = null ) : boolean |
Determine if a translation exists for a given locale. |
|
load ( string $namespace, string $group, string $locale ) : void |
Load the specified language group. |
|
locale ( ) : string |
Get the default locale being used. |
|
parseKey ( string $key ) : array |
Parse a key into namespace, group, and item. |
|
setFallback ( string $fallback ) : void |
Set the fallback locale being used. |
|
setLocale ( string $locale ) : void |
Set the default locale. |
|
setParsedKey ( string $key, array $parsed ) : void |
Set the parsed value of a key. |
|
setSelector ( Symfony\Component\Translation\MessageSelector $selector ) : void |
Set the message selector instance. |
|
trans ( string $id, array $parameters = [], string $domain = 'messages', string $locale = null ) : string | array | null |
Get the translation for a given key. |
|
transChoice ( string $id, integer | array | Countable $number, array $parameters = [], string $domain = 'messages', string $locale = null ) : string |
Get a translation according to an integer value. |
|