# Concatenation in string translation

**URL:** <https://forum.inductiveautomation.com/t/concatenation-in-string-translation/111669>\
**Category:** Ignition\
**Tags:** perspective, ignition83, scripting\
**Created:** [October 23, 2025, 8:40am UTC](https://forum.inductiveautomation.com/t/concatenation-in-string-translation/111669 "2025-10-23T08:40:46Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Francesco\_Vezzoli](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@Francesco\_Vezzoli](https://forum.inductiveautomation.com/u/Francesco_Vezzoli)\
**Post date:** [October 23, 2025, 1:25pm UTC](https://forum.inductiveautomation.com/t/concatenation-in-string-translation/111669/11 "2025-10-23T13:25:06Z")

</div>

This works but now another problem arises: if I use the function "translate('somekey', {session.props.locale})", the "session.props.locale" property must be, for example, "en\_US" while if I use the function "translate('somekey') the "session.props.locale" property must be "en-US" (this format, the other function, gives me an error saying: "Invalid locale format: en-US"). Depending on which one I use, I see the translations of certain texts working or not. Why is this? This is all quite funny 😂

---

_[View the full topic](https://forum.inductiveautomation.com/t/concatenation-in-string-translation/111669)._
