Class SprintfFormatter
A formatter that will interpolate variables using sprintf and select the correct plural form when required
Namespace: Cake\I18n\Formatter
Method Summary
-
format() public
Returns a string with all passed variables interpolated into the original message. Variables are interpolated using the sprintf format.
Method Detail
format() ΒΆ public
format(string $locale, string $string, array $tokensValues): string
Returns a string with all passed variables interpolated into the original message. Variables are interpolated using the sprintf format.
Parameters
-
string
$locale The locale in which the message is presented.
-
string
$string The message to be translated
-
array
$tokensValues The list of values to interpolate in the message
Returns
string