Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

symfony translation variable in twig

<h2>{{ 
	"path.to.translation.key" | trans(
		{ 
			'%someVariable1%': someVariable1,
			'%someVariable1%': someVariable1
		}, "domain"
     ) 
	}}
</h2>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #symfony #translation #variable #twig
ADD COMMENT
Topic
Name
4+9 =