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