Mail Template - Translate enum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chris h
    Junior Member
    • May 2025
    • 1

    #1

    Mail Template - Translate enum

    Hi,
    I have both English and German mail templates. I want to maintain the data in English, but translate it to German in a mail. E.g, always store the industy as "Consultancy", but write "Beratungsunternehmen" if I select a German template. I've tried {{translate lead.industry}} (this is how I interpret https://docs.espocrm.com/development...tes/#translate), but it gives an empty string (...unsurprising - I never told it what target language to use or what Consultancy is in German).
    Can anyone point me to the relevant documentation or give me a hint?
    Cheers
    Chris
  • yuri
    Member
    • Mar 2014
    • 8977

    #2
    Hi Chris,

    There's no helper that translates values to a specific language.

    Developers can implement custom helpers though. https://docs.espocrm.com/development...custom-helper/
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...