# \[Bug-9453\]Perspective and Language / Translation Manager

**URL:** <https://forum.inductiveautomation.com/t/bug-9453-perspective-and-language-translation-manager/29135>\
**Category:** Ignition\
**Created:** [October 16, 2019, 7:20pm UTC](https://forum.inductiveautomation.com/t/bug-9453-perspective-and-language-translation-manager/29135 "2019-10-16T19:20:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![djones](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@djones](https://forum.inductiveautomation.com/u/djones)\
**Post date:** [October 16, 2019, 7:20pm UTC](https://forum.inductiveautomation.com/t/bug-9453-perspective-and-language-translation-manager/29135/1 "2019-10-16T19:20:35Z")

</div>

I feel like I might be missing something…

I have a Perspective app that I am putting together, that will be used within our corporate network at various sites. These sites could speak different languages. The current Ignition app uses Vision and this is super easy to do with the language selector component.

I cannot seem to re-create the same type of feature in Perspective.

First, I see there is a locale in the session props and found a release note about 8.0.2 and needing to set that session prop to switch the language. I have Thai and English setup in the translation manager and a few words translated in each for testing. If I set that system.props.locale property to ‘th’. Nothing happens.

Second, the system.util.translate and the translate() expression function seem to not be processed on the server side. I suppose this makes sense as Vision uses the translation manager in the client scope.

So the problem is that i am stuck and am not sure how to proceed to get the translations to work in perspective. The release notes and some forum posts seem to indicate that it is possible, but I cannot for the life of me figure it out.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 16, 2019, 7:37pm UTC](https://forum.inductiveautomation.com/t/bug-9453-perspective-and-language-translation-manager/29135/2 "2019-10-16T19:37:07Z")

</div>

It sounds like you’re incorrectly setting the locale; try `th-TH`.

As for the Translation Expression, we have an open bug ticket to address that issue.

[EDIT]  
Actually, just `th` worked for me. Here’s what I have set up, and it’s working exactly as I would expect:  
I have supplied “Thai” as a translation-ready language and supplied a term that should be translated, as well as the translation (and obviously save this translation):

 ![27%20PM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/97c3ece4aa1e975744c9d933718ef46161ac871c.png)

I have a Perspective Label component which has text which matches the term to translate (and you can see my `English (Alternate)` translation already in place:

 ![58%20PM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/86d7ea66aad6210cf6a4c7dc2a339a1efb383d5d.png)

If I switch my session locale to `th-TH` (or even just `th`), then I see the following:

 ![12%20PM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/d529358a2a0fdd3cfacac616f75bad06f8bfa6f0.png)

Could you supply me with a term you’ve translated from English to Thai?

---

<div class="post-metadata">

**Author:** ![djones](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@djones](https://forum.inductiveautomation.com/u/djones)\
**Post date:** [October 16, 2019, 7:56pm UTC](https://forum.inductiveautomation.com/t/bug-9453-perspective-and-language-translation-manager/29135/3 "2019-10-16T19:56:23Z")

</div>

ah man, I feel like a moron.

I didn’t have my tag binding as bi-directional. Thanks for the help.

One last question. I don’t see any way to mark the fields a requiring translation. Does perspective simply translate any term seen on the screen?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 16, 2019, 8:05pm UTC](https://forum.inductiveautomation.com/t/bug-9453-perspective-and-language-translation-manager/29135/4 "2019-10-16T20:05:02Z")

</div>

I don’t think it’s ANY text, as modifying values in an input component could have serious consequences.

I think it’s also more akin to “phrases” as in my example “Computer” is translated to PC for my English (Alternate) translation, yet “I own a Computer” remains “I own a Computer”.

Also, if you see a property with a key of “source” or “label”, I believe those are skipped as well, as it’s understood that the value could be used for something and so should retain its current value.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 16, 2019, 8:13pm UTC](https://forum.inductiveautomation.com/t/bug-9453-perspective-and-language-translation-manager/29135/5 "2019-10-16T20:13:24Z")

</div>

Testing out these general observations seem to re-enforce my theories:

- Properties with keys of “text” for components which are not inputs where that text is their driving property seem to always translate (so even though the Text Field component has a “text” property it does not get translated, whereas the Checkbox component “text” property DOES get translated).
- Properties with keys of “label”, “source”, and “value” seem to not translate.
- Setting up a Translatio of “Computer” -\> “PC” and “I own a Computer” -\> “I do not own a Mac” results in text properties of “Computer” becoming “PC”, whereas “I own a Computer” becomes “I do not own a Mac”.

---

<div class="post-metadata">

**Author:** ![djones](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@djones](https://forum.inductiveautomation.com/u/djones)\
**Post date:** [October 17, 2019, 12:35am UTC](https://forum.inductiveautomation.com/t/bug-9453-perspective-and-language-translation-manager/29135/6 "2019-10-17T00:35:36Z")

</div>

Thanks for the reply

Is there a reason why the horizontal menu text is not translating?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 17, 2019, 2:33pm UTC](https://forum.inductiveautomation.com/t/bug-9453-perspective-and-language-translation-manager/29135/7 "2019-10-17T14:33:10Z")

</div>

> [@cmallonee](#):
>
> Properties with keys of “ **label** ”, “source”, and “value” seem to not translate.

![37%20AM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3db2833b115632a9cd84a377a774f8f8f4124d90.png)
