# Session.props.locale in perspective

**URL:** <https://forum.inductiveautomation.com/t/session-props-locale-in-perspective/34423>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 4, 2020, 6:52pm UTC](https://forum.inductiveautomation.com/t/session-props-locale-in-perspective/34423 "2020-05-04T18:52:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beaudoin.stephane](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@beaudoin.stephane](https://forum.inductiveautomation.com/u/beaudoin.stephane)\
**Post date:** [May 4, 2020, 6:52pm UTC](https://forum.inductiveautomation.com/t/session-props-locale-in-perspective/34423/1 "2020-05-04T18:52:39Z")

</div>

Hi, I am trying to translate my project with the translation Manager in perspective.  
What are the correct values for session.props.locale to display other languages? in french (FR-ca or french or français)?  
Also is there a way to set the language inside the app? Why there is no component in perspective like in vision to switch the language? Is the session need to be reset to get effective? Do I have to change all text values by a #hashtag key to get it work?

---

<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:** [May 4, 2020, 8:49pm UTC](https://forum.inductiveautomation.com/t/session-props-locale-in-perspective/34423/2 "2020-05-04T20:49:04Z")

</div>

> [@beaudoin.stephane](#):
>
> What are the correct values for session.props.locale to display other languages? in french (FR-ca or french or français)?

The identifier should be a shortcode, so `FR`, `FR-ca`; not a full language name. Unlike Java, the frontend requires hyphens, rather than underscores.

> [@beaudoin.stephane](#):
>
> Also is there a way to set the language inside the app?

Yes, just write a new value to `session.props.locale` - that's it.

> [@beaudoin.stephane](#):
>
> Why there is no component in perspective like in vision to switch the language?

Because it hasn't been implemented yet. When it does, it's just going to be a dropdown component, with seeded options, that writes back to `session.props.locale`; it's easy enough to create your own that it hasn't been the highest priority for us to create.

> [@beaudoin.stephane](#):
>
> Is the session need to be reset to get effective?

No. Changing the locale will immediately update _most_ text that's visible in the session.

> [@beaudoin.stephane](#):
>
> Do I have to change all text values by a #hashtag key to get it work?

No. But the translation system will only change _visible_ values on components, without affecting underlying data. If you need to translate other text, you can also use the `translate()` expression function in Perspective (which will automatically update translations when you change `session.props.locale`, or you can use the `system.util.translate()` scripting function.

---

<div class="post-metadata">

**Author:** ![beaudoin.stephane](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@beaudoin.stephane](https://forum.inductiveautomation.com/u/beaudoin.stephane)\
**Post date:** [May 19, 2020, 2:57pm UTC](https://forum.inductiveautomation.com/t/session-props-locale-in-perspective/34423/3 "2020-05-19T14:57:27Z")

</div>

Hi, Why the MenuTree and Emebeded views are not translating ? Only labels at first layer translated.
