class MessageTranslator implements TranslatorInterface
Class MessageTranslator.
Methods
string
trans(string $id, array $parameters = [], string $domain = null, string $locale = null)
Translates the given message.
Details
at line 40
__construct(ErrorCodeProviderInterface $provider)
MessageTranslator constructor.
at line 50
addResource(array $items)
Add extra resources.
at line 67
string
trans(string $id, array $parameters = [], string $domain = null, string $locale = null)
Translates the given message.
at line 77
string
getLocale()
Returns the current locale.