_x()

Twig function of the framework; its result is escaped like any value.

{{ _x(text, context) }}

The translation of a text in a context, for texts that are the same in English but differ in other languages.

<span>{{ _x('May', 'month') }}</span>
ParameterTypeDefaultDescription
textstringrequiredThe text in English.
contextstringrequiredWhat the text means, for translators.

Returns string