Translate string inside twig template

I managed to assign a variable to context.

$context = Timber::get_context();
$context['search_placeholder'] = __("Suche","pixel_framework");

Timber::fetch('test.twig',$context);

inside twig

<input type="text" id="s" name="s" value="" placeholder=" {{search_placeholder}}">