protected static function injectTranslatorValues(TranslatorInterface $translator, TemplateInterface $template): void
    {
        static::injectTranslatorValue($translator, $template, 'label');
        static::injectTranslatorValue($translator, $template, 'description');
        static::injectTranslatorValue($translator, $template, 'body');

        if ($template instanceof MailInterface) {
            static::injectTranslatorValue($translator, $template, 'subject');
            static::injectTranslatorValue($translator, $template, 'htmlBody');
        }
    }
protected static function injectTranslatorValues(TranslatorInterface $translator, TemplateInterface $template): void
    {
        static::injectTranslatorValue($translator, $template, 'label');
        static::injectTranslatorValue($translator, $template, 'description');
        static::injectTranslatorValue($translator, $template, 'body');

        if ($template instanceof MailInterface) {
            static::injectTranslatorValue($translator, $template, 'subject');
            static::injectTranslatorValue($translator, $template, 'htmlBody');
        }
    }
protected static function injectTranslatorValues ( TranslatorInterface $ translator , TemplateInterface $ template ) : void { static :: injectTranslatorValue ( $ translator , $ template , 'label' ) ; static :: injectTranslatorValue ( $ translator , $ template , 'description' ) ; static :: injectTranslatorValue ( $ translator , $ template , 'body' ) ; if ( $ template instanceof MailInterface ) { static :: injectTranslatorValue ( $ translator , $ template , 'subject' ) ; static :: injectTranslatorValue ( $ translator , $ template , 'htmlBody' ) ; } }
Inject the translation values of translator in template.

@param TranslatorInterface $translator The translator
@param TemplateInterface   $template   The template instance
Inject the translation values of translator in template .