<p>Ok, finally I solved the mystery.
Static terms work well in the Email Content field.</p>
<p>The problem was that my template uses the <code>formie.php</code> file for translations. While formie email notification use <code>site.php</code>.</p>
<p>So somehting like <code>{{&quot;First name&quot;|t(&quot;formie&quot;)}}</code> did the trick.</p>

CC BY-SA 4.0
2023-03-22T15:31:50.727Z
2023-03-22T16:05:16.087Z
2023-03-22T16:05:16.087Z
Elodie Grondin
<p>This is my first time using formie and it looks really nice. Thank you for the plugin.
I just have an issue with translations in notification. So here is some context :</p>
<p>I have a form with static terms in <code>formie.php</code> for labels (that's working in front-end), and I'd like to get the translated labels inside the email notification too.</p>
<p>I tried these inside <em>formie &gt; forms &gt; email notifications &gt; <strong>email content</strong></em></p>
<pre><code>First name

{{&quot;First name&quot;|t}}

{{&quot;First name&quot;|t([],&quot;fr&quot;)}}

{&quot;First name&quot;|t}
</code></pre>
<p>But none of these are working...</p>
<p>Is it possible to have static terms in emails ? If not, what would be the workaround?</p>
<p>Thank you !</p>
<p><strong>Here is my config :</strong></p>
<ul>
<li>Craft CMS : 4.4.1</li>
<li>Verbb/Formie : 2.0.24</li>
</ul>
<hr />
<p>[EDIT]</p>
<p>Okay, I don't have the solution for static translation inside Email Content field for the notification. But I found &quot;custom email template&quot;, so I guess I'm gonna go for that solution.
<a href="https://verbb.io/craft-plugins/formie/docs/template-guides/email-templates" rel="nofollow noreferrer">Doc</a></p>
<hr />
<p>[EDIT 2]</p>
<p><code>{{&quot;First name&quot;|t(&quot;formie&quot;)}}</code> did the trick. The email notification uses <code>site.php</code> file by default.</p>

<craft4><plugin-formie>
Is it possible to use static terms inside Formie email notification?
# Is it possible to use static terms inside Formie email notification?

(Asked by: username_0 on 2023-03-14)

This is my first time using formie and it looks really nice. Thank you for the plugin.
I just have an issue with translations in notification. So here is some context :
I have a form with static terms in formie.php for labels (that's working in front-end), and I'd like to get the translated labels inside the email notification too.
I tried these inside formie > forms > email notifications > email content
First name

{{"First name"|t}}

{{"First name"|t([],"fr")}}

{"First name"|t}

But none of these are working...
Is it possible to have static terms in emails ? If not, what would be the workaround?
Thank you !
Here is my config :

Craft CMS : 4.4.1
Verbb/Formie : 2.0.24


[EDIT]
Okay, I don't have the solution for static translation inside Email Content field for the notification. But I found "custom email template", so I guess I'm gonna go for that solution.
Doc

[EDIT 2]
{{"First name"|t("formie")}} did the trick. The email notification uses site.php file by default.

**Tags:** craft4, plugin-formie

---

## 1 answers

### Answer by username_0 on 2023-03-22. Score: 1 | Accepted answer

Ok, finally I solved the mystery.
Static terms work well in the Email Content field.

The problem was that my template uses the `formie.php` file for translations. While formie email notification use `site.php`.

So somehting like `{{"First name"|t("formie")}}` did the trick.


---

