Securing langugae folder

The short answer is to use the location wp-content/languages/woocommerce/ to store custom translations. See WooCommerce documentation. This location should be safe from all WordPress updates. Folders parallel to languages/plugins and languages/themes will not be modified. To your specific questions: is there a way to make whole wp-content/languages folder safe for updating? You can control automatic … Read more

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}}”>