<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Adapt the language property on email in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1153452#M82151</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi all !&lt;BR /&gt;I create a Trial End Date property and add it on a module for my emails campaings. It’s not possible to translate the “Trial Days Left” property in the emails (jours &amp;gt; days). It's translated in the contact record, but that doesn’t apply in emails because&lt;STRONG&gt; it’s not a default property.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;As its a module, can i edit the code to translate the property ?&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Here is the code :&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;div style="text-align: left; margin: 10px 20px;"&amp;gt;&lt;BR /&gt;&amp;lt;span style="display: inline-block; background-color: #F3F0FF; color: #4E3A99; padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 500; font-family: Helvetica, Arial, sans-serif;"&amp;gt;&lt;BR /&gt;&amp;lt;b&amp;gt;{{ contact.trial_days_left | default("Few") }}&amp;lt;/b&amp;gt; / days left before your free trial ends&lt;BR /&gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 May 2025 16:16:43 GMT</pubDate>
    <dc:creator>LCHAMPOT</dc:creator>
    <dc:date>2025-05-16T16:16:43Z</dc:date>
    <item>
      <title>Adapt the language property on email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1153452#M82151</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all !&lt;BR /&gt;I create a Trial End Date property and add it on a module for my emails campaings. It’s not possible to translate the “Trial Days Left” property in the emails (jours &amp;gt; days). It's translated in the contact record, but that doesn’t apply in emails because&lt;STRONG&gt; it’s not a default property.&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;As its a module, can i edit the code to translate the property ?&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Here is the code :&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;div style="text-align: left; margin: 10px 20px;"&amp;gt;&lt;BR /&gt;&amp;lt;span style="display: inline-block; background-color: #F3F0FF; color: #4E3A99; padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 500; font-family: Helvetica, Arial, sans-serif;"&amp;gt;&lt;BR /&gt;&amp;lt;b&amp;gt;{{ contact.trial_days_left | default("Few") }}&amp;lt;/b&amp;gt; / days left before your free trial ends&lt;BR /&gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 16:16:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1153452#M82151</guid>
      <dc:creator>LCHAMPOT</dc:creator>
      <dc:date>2025-05-16T16:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adapt the language property on email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1153543#M82154</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/592241"&gt;@LCHAMPOT&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you say you want to translate the property, do you mean you want to convert the value or simply display the value in the email?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what is the property type of "&lt;SPAN&gt;trial_days_left"? (i.e. text, number, calculation, etc.)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 21:14:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1153543#M82154</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-05-16T21:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adapt the language property on email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1153627#M82157</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/53048"&gt;@evaldas&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to display the value in my email, the property&amp;nbsp;&lt;SPAN class=""&gt;is &lt;/SPAN&gt;&lt;SPAN class=""&gt;a &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;calculated &lt;/SPAN&gt;&lt;SPAN class=""&gt;property&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN class=""&gt;of &lt;/SPAN&gt;&lt;SPAN class=""&gt;type &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Time &lt;/SPAN&gt;&lt;SPAN class=""&gt;between &lt;/SPAN&gt;&lt;SPAN class=""&gt;today &lt;/SPAN&gt;&lt;SPAN class=""&gt;and &lt;/SPAN&gt;&lt;SPAN class=""&gt;a &lt;/SPAN&gt;&lt;SPAN class=""&gt;date&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;with:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Start &lt;/SPAN&gt;&lt;SPAN class=""&gt;date&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt; = &lt;/SPAN&gt;&lt;SPAN class=""&gt;Today's &lt;/SPAN&gt;&lt;SPAN class=""&gt;date&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;End &lt;/SPAN&gt;&lt;SPAN class=""&gt;date&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt; = &lt;/SPAN&gt;&lt;SPAN class=""&gt;Trial &lt;/SPAN&gt;&lt;SPAN class=""&gt;End &lt;/SPAN&gt;&lt;SPAN class=""&gt;Date (&lt;/SPAN&gt;&lt;SPAN class=""&gt;a &lt;/SPAN&gt;&lt;SPAN class=""&gt;custom &lt;/SPAN&gt;&lt;SPAN class=""&gt;date &lt;/SPAN&gt;&lt;SPAN class=""&gt;property)&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class=""&gt;As I created it with my french portal, it's diplay "jours" in french on both emails like they translate only default properties. I was wondering if I ask can translate it in the module. They tell me to ask a developper.&lt;BR /&gt;&lt;BR /&gt;Thanks so much.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 May 2025 06:17:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1153627#M82157</guid>
      <dc:creator>LCHAMPOT</dc:creator>
      <dc:date>2025-05-17T06:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adapt the language property on email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1153685#M82158</link>
      <description>&lt;P&gt;Thank you for clarifying.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can actually use custom properties&amp;nbsp;in emails - in your case, you might just need to update it to a personalization token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in your module, instead of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ contact.trial_days_left | default("Few") }}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;try using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ personalization_token('contact.trial_days_left', 'Few') }}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know whether&amp;nbsp;this worked for you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 May 2025 14:26:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1153685#M82158</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-05-17T14:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adapt the language property on email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1154026#M82165</link>
      <description>Hello &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; !&lt;BR /&gt;&lt;BR /&gt;Thanks! I tried using it, but the email still displays *"jours"* instead of&lt;BR /&gt;*"days". *The email language is correctly set to *English *and I choose a&lt;BR /&gt;US contact for the "display as" and send it to my french email.&lt;BR /&gt;&lt;BR /&gt;Could this be related to my browser language when receiving the email?&lt;BR /&gt;&lt;BR /&gt;Let me know if there's something else I should check &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 May 2025 06:35:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1154026#M82165</guid>
      <dc:creator>LCHAMPOT</dc:creator>
      <dc:date>2025-05-19T06:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adapt the language property on email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1154279#M82174</link>
      <description>&lt;P&gt;Oh, I see now!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case what you can do is use a &lt;A href="https://developers.hubspot.com/docs/reference/cms/hubl/filters#replace" target="_blank" rel="noopener"&gt;HubL replace&amp;nbsp;filter&lt;/A&gt; to translate that manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First you will need to make sure to turn on the "Use module for programmable email" feature&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="evaldas_0-1747667911185.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/146412iFF0B45E85F715F8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="evaldas_0-1747667911185.png" alt="evaldas_0-1747667911185.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using a a drag and drop template, you don't need to do this but if you are using a custom-coded email template, you will also need to add "&lt;SPAN&gt;isEnabledForEmailV3Rendering: true" a the top of your template file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="evaldas_1-1747668064680.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/146413iB62AAB8AE19DCC0C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="evaldas_1-1747668064680.png" alt="evaldas_1-1747668064680.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.hubspot.com/marketing-email/create-programmable-emails" target="_blank"&gt;https://knowledge.hubspot.com/marketing-email/create-programmable-emails&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the module is turned on for programmable email, you can use the following code to manually translate your property in the email:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% set days_remaining = contact.trial_days_left %}
{{ days_remaining|replace('jours', 'days') }}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if it works properly for you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 15:28:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1154279#M82174</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-05-19T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adapt the language property on email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1154534#M82184</link>
      <description>&lt;P&gt;Oh wow, its works !!! Huge thanks&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":hugging_face:"&gt;🤗&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 06:12:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1154534#M82184</guid>
      <dc:creator>LCHAMPOT</dc:creator>
      <dc:date>2025-05-20T06:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adapt the language property on email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1154718#M82186</link>
      <description>&lt;P&gt;Awesome! Thank you for confirming and glad to hear we were able to solve this &lt;span class="lia-unicode-emoji" title=":relieved_face:"&gt;😌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 13:39:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Adapt-the-language-property-on-email/m-p/1154718#M82186</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-05-20T13:39:52Z</dc:date>
    </item>
  </channel>
</rss>

