class Translator extends Translator implements TranslatorInterface

Constants

REFERENCE_REGEX

Methods

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

No description

string
choice($key, $number, array $replace = [], $locale = null)

No description

MessageCatalogueInterface
getCatalogue(string|null $locale = null)

No description

void
setLocale($locale)

No description

Details

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

Parameters

$key
array $replace
$locale

Return Value

string

string choice($key, $number, array $replace = [], $locale = null)

Parameters

$key
$number
array $replace
$locale

Return Value

string

MessageCatalogueInterface getCatalogue(string|null $locale = null)

Parameters

string|null $locale

Return Value

MessageCatalogueInterface

void setLocale($locale)

Parameters

$locale

Return Value

void