<p>I would like to make a notification of Sprout Email plugin bilingual.</p>
<p>However, in the <code>body</code> field, the translation filter does not work.
The tag of <code>{{ fieldname.label|t }}</code> is not translated.</p>
<p><a href="https://i.sstatic.net/6zRKC.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6zRKC.jpg" alt="enter image description here" /></a></p>
<p>How is it possible to translate it?</p>
<p>Actually it is the same question as this, but it was asked five years ago.
<a href="https://craftcms.stackexchange.com/questions/11454/translate-filter-and-nested-vocabulary-properties">Translate filter and nested vocabulary properties</a></p>

CC BY-SA 4.0
2020-08-17T12:22:50.497Z
Can you clarify where you are trying to translate the `{{ fieldname.label|t }}` tag? I'm not sure this is the same issue as the other question you link to as `fieldname.label` is not a nested translation, it is just a dynamic variable outputting the label to be translated.
Ben Parizek
CC BY-SA 4.0
2020-08-17T12:25:00.747Z
Two quick thoughts. You may need to add a translation category to the label you are trying to translate `{{ fieldname.label|t('site') }}`. If this is on the front-end, you can take a look at Craft's Static Translations docs: https://craftcms.com/docs/3.x/sites.html#static-message-translations. If this is code in Sprout Email (which I'm not currently seeing) could you update your question and point to the code in question.
Ben Parizek
CC BY-SA 4.0
2020-08-17T19:17:57.923Z
Thank you for helping me. 1) I have already tried the tag of {{ fieldname.label|t('site') }} , but it did not solve the issue.
Kota.M
CC BY-SA 4.0
2020-08-17T19:23:26.093Z
And I added a screenshot. The tag is in the template of Sprout Email, in Craft dashboard.
Kota.M
<craft3><localization><plugin-sproutemail>
Translation filter in Sprout Email plugin
# Translation filter in Sprout Email plugin

(Asked by: username_0 on 2020-08-11)

I would like to make a notification of Sprout Email plugin bilingual.

However, in the `body` field, the translation filter does not work.
The tag of `{{ fieldname.label|t }}` is not translated.

[![enter image description here](https://i.sstatic.net/6zRKC.jpg)](https://i.sstatic.net/6zRKC.jpg)

How is it possible to translate it?

Actually it is the same question as this, but it was asked five years ago.
[Translate filter and nested vocabulary properties](https://craftcms.stackexchange.com/questions/11454/translate-filter-and-nested-vocabulary-properties)

**Tags:** craft3, localization, plugin-sproutemail

> **Comments:**
> **username_1**: Can you clarify where you are trying to translate the `{{ fieldname.label|t }}` tag? I'm not sure this is the same issue as the other question you link to as `fieldname.label` is not a nested translation, it is just a dynamic variable outputting the label to be translated.  
> **username_1**: Two quick thoughts. You may need to add a translation category to the label you are trying to translate `{{ fieldname.label|t('site') }}`. If this is on the front-end, you can take a look at Craft's Static Translations docs: https://craftcms.com/docs/3.x/sites.html#static-message-translations. If this is code in Sprout Email (which I'm not currently seeing) could you update your question and point to the code in question.  
> **username_0**: Thank you for helping me. 1) I have already tried the tag of {{ fieldname.label|t('site') }} , but it did not solve the issue.  
> **username_0**: And I added a screenshot. The tag is in the template of Sprout Email, in Craft dashboard.  

---

## 0 answers

