# Translate alarm eventState in alarm notification message

**URL:** <https://forum.inductiveautomation.com/t/translate-alarm-eventstate-in-alarm-notification-message/52296>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [October 25, 2021, 12:51pm UTC](https://forum.inductiveautomation.com/t/translate-alarm-eventstate-in-alarm-notification-message/52296 "2021-10-25T12:51:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [October 25, 2021, 12:51pm UTC](https://forum.inductiveautomation.com/t/translate-alarm-eventstate-in-alarm-notification-message/52296/1 "2021-10-25T12:51:22Z")

</div>

In alarm notification message, we can use some format for time, but is it possible to translate the “ **event state** ” ?

Example:

```auto
At {eventTime|hh:mm:ss}, alarm "{name} - {label}" at "{displayPath}" transitioned to {eventState}.

```

In french:

```auto
A {eventTime|hh:mm:ss}, alarm "{name} - {label}" au "{displayPath}" change vers l'état {eventState}.

```

eventState is replaced by **Active**.  
I would like to translate this term in the sms or email message !

---

<div class="post-metadata">

**Author:** ![jgmm](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jgmm](https://forum.inductiveautomation.com/u/jgmm)\
**Post date:** [March 21, 2022, 3:43am UTC](https://forum.inductiveautomation.com/t/translate-alarm-eventstate-in-alarm-notification-message/52296/2 "2022-03-21T03:43:35Z")

</div>

i have not tried it yet but probably could use the “if” expression.

something like

if({eventstate}=‘Active’, ‘le active’, ‘le no active’)

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [March 21, 2022, 2:37pm UTC](https://forum.inductiveautomation.com/t/translate-alarm-eventstate-in-alarm-notification-message/52296/3 "2022-03-21T14:37:16Z")

</div>

I don’t think the notification messages support expressions, but you could translate it in a script block BEFORE the notification block, simply translating the `event.state` manually or using translating functions.
