MessageFormatter
class MessageFormatter implements MessageFormatterInterface, IntlFormatterInterface, ChoiceMessageFormatterInterface
Methods
string
format(string $message, string $locale, array $parameters = array())
Formats a localized message pattern with given arguments.
string
formatIntl(string $message, string $locale, array $parameters = array())
Formats a localized message using rules defined by ICU MessageFormat.
string
choiceFormat(string $message, int $number, string $locale, array $parameters = array())
deprecated
Formats a localized message pattern with given arguments.