# Language Translations in Tree View (Vision)

**URL:** <https://forum.inductiveautomation.com/t/language-translations-in-tree-view-vision/66585>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 16, 2022, 3:43pm UTC](https://forum.inductiveautomation.com/t/language-translations-in-tree-view-vision/66585 "2022-11-16T15:43:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill\_S](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bill_s/32/6705_2.png) [@Bill\_S](https://forum.inductiveautomation.com/u/Bill_S)\
**Post date:** [November 16, 2022, 3:43pm UTC](https://forum.inductiveautomation.com/t/language-translations-in-tree-view-vision/66585/1 "2022-11-16T15:43:40Z")

</div>

I have an existing project in Vision that I am redeploying to Mexico so I'm adding Spanish translations. I'm using the Translate() function on my labels and multistate indicators, but I'm really struggling with the Tree View that is used for navigation.

I think I've determined that I need to translate the values in the Tree View dataset in the columns for "path" and "text", but how? This surely must be a common need, so is there a best practice on this? I feel like I'm missing something simple and obvious.

How have any of you approached this?

---

<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:** [November 16, 2022, 3:54pm UTC](https://forum.inductiveautomation.com/t/language-translations-in-tree-view-vision/66585/2 "2022-11-16T15:54:11Z")

</div>

If you're building the tree with a script, maybe `system.util.translate` is what you're looking for:  
[https://docs.inductiveautomation.com/display/DOC81/system.util.translate](https://docs.inductiveautomation.com/display/DOC81/system.util.translate)

---

<div class="post-metadata">

**Author:** ![Bill\_S](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bill_s/32/6705_2.png) [@Bill\_S](https://forum.inductiveautomation.com/u/Bill_S)\
**Post date:** [November 16, 2022, 4:09pm UTC](https://forum.inductiveautomation.com/t/language-translations-in-tree-view-vision/66585/3 "2022-11-16T16:09:09Z")

</div>

My Tree is relatively static and simple, so I just type the required data into the component dataset. It doesn't have very many levels and the levels are not very deep, so my entire dataset is only about 20 rows long.

What options do I have in this scenario?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 16, 2022, 6:12pm UTC](https://forum.inductiveautomation.com/t/language-translations-in-tree-view-vision/66585/4 "2022-11-16T18:12:07Z")

</div>

You could use a cell update binding to various custom properties that use the `translate` expression function:  
[https://docs.inductiveautomation.com/display/DOC81/Cell+Update+Bindings](https://docs.inductiveautomation.com/display/DOC81/Cell+Update+Bindings)  
[https://docs.inductiveautomation.com/display/DOC81/translate](https://docs.inductiveautomation.com/display/DOC81/translate)

---

<div class="post-metadata">

**Author:** ![Bill\_S](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bill_s/32/6705_2.png) [@Bill\_S](https://forum.inductiveautomation.com/u/Bill_S)\
**Post date:** [November 16, 2022, 10:04pm UTC](https://forum.inductiveautomation.com/t/language-translations-in-tree-view-vision/66585/5 "2022-11-16T22:04:32Z")

</div>

Thanks Paul, I think I can imagine how I might do that.....I need to try some things to understand this.

Is it unusual for the Tree View dataset to NOT be build by script? I would love to see sample code for how to build it dynamically if anyone can share that.

---

<div class="post-metadata">

**Author:** ![Bill\_S](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bill_s/32/6705_2.png) [@Bill\_S](https://forum.inductiveautomation.com/u/Bill_S)\
**Post date:** [November 17, 2022, 4:53am UTC](https://forum.inductiveautomation.com/t/language-translations-in-tree-view-vision/66585/6 "2022-11-17T04:53:23Z")

</div>

> [@paul-griffith](#):
>
> You could use a cell update binding to various custom properties that use the `translate` expression function:

This actually worked really well! Thanks!!
