I18n::template()
Translate by key and then replace placeholders in the text
I18n::template(string $key, array|string|null $fallback = null, ?array $replace = null, ?string $locale = null): string
Parameters
Name | Type | Default |
---|---|---|
$key * | string |
– |
$fallback | array |string |null |
null |
$replace | array |null |
null |
$locale | string |null |
null |
Return type
string