interface TranslatorInterface (View source)

Methods

string|null
locale()
string|null
string
get(string $key, array $replacements = [], string|null $locale = null)
string
array
group(string $group, string|null $locale = null)
array
array
all(string|null $locale = null)
array

Details

setLocale

TranslatorInterface setLocale(string|null $locale)

No description

Parameters

string|null $locale

Return Value

TranslatorInterface

locale

string|null locale()

No description

Return Value

string|null

get

string get(string $key, array $replacements = [], string|null $locale = null)

No description

Parameters

string $key
array $replacements
string|null $locale

Return Value

string

group

array group(string $group, string|null $locale = null)

No description

Parameters

string $group
string|null $locale

Return Value

array

all

array all(string|null $locale = null)

No description

Parameters

string|null $locale

Return Value

array