Translation text in place holder

Hi there,
I’d like to know how to enable translation function for a placeholder text.

For example,
{% input custom.a.comment as:text placeholder:“Add comments” %}
I’d like to translate the word “Add comments” to french, when I choose the template language in “french”.


Hi Flora,

The following code should work:

{% t= "key_test" en:"English text" fr:"French text" %}

{% capture placeholder_default %}{% t "key_test" %}{% endcapture %}

{% input custom.this.note as:text placeholder:placeholder_default %}

Any questions, please let us know.


1 Like

Got it, thanks Borja