A formatter that will interpolate variables using the MessageFormatter class
Returns a string with all passed variables interpolated into the original message. Variables are interpolated using the MessageFormatter class.
_formatMessage( string $locale , string|array $message , array $vars )
Does the actual formatting using the MessageFormatter class
$locale
$message
$vars
if any error occurred while parsing the message
If any error related to the passed variables is found
format( string $locale , string|array $message , array $vars )
Returns a string with all passed variables interpolated into the original message. Variables are interpolated using the MessageFormatter class.
If an array is passed in $message
, it will trigger the plural selection routine. Plural forms are selected depending on the locale and the _count
key passed in $vars
.
$locale
$message
$vars
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.I18n.Formatter.IcuFormatter.html