# Perspective Parent Session Properties to Child

**URL:** <https://forum.inductiveautomation.com/t/perspective-parent-session-properties-to-child/81183>\
**Category:** Ignition\
**Tags:** ignition80, scripting, python, perspective, ignition81\
**Created:** [October 30, 2023, 5:07pm UTC](https://forum.inductiveautomation.com/t/perspective-parent-session-properties-to-child/81183 "2023-10-30T17:07:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikhil\_M](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@Nikhil\_M](https://forum.inductiveautomation.com/u/Nikhil_M)\
**Post date:** [October 30, 2023, 5:07pm UTC](https://forum.inductiveautomation.com/t/perspective-parent-session-properties-to-child/81183/1 "2023-10-30T17:07:29Z")

</div>

Hello,

I have one parent project which is being inherited by 5-10 projects.  
So I want to add locale selector which I did in Parent project’s header (this is used by all child)

However when I change locale from the header, nothing happens.  
I’m guessing it must be changing locale but only of parent and not child.

Please suggest a way

---

<div class="post-metadata">

**Author:** ![hw79](https://avatars.discourse-cdn.com/v4/letter/h/838e76/32.png) [@hw79](https://forum.inductiveautomation.com/u/hw79)\
**Post date:** [October 30, 2023, 6:12pm UTC](https://forum.inductiveautomation.com/t/perspective-parent-session-properties-to-child/81183/2 "2023-10-30T18:12:56Z")

</div>

Are you setting the locale in a session.custom prop?

I have my parent project set the property (bi-directional so the user can also change it) and the children reference the session.custom prop.

---

<div class="post-metadata">

**Author:** ![Nikhil\_M](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@Nikhil\_M](https://forum.inductiveautomation.com/u/Nikhil_M)\
**Post date:** [October 30, 2023, 6:34pm UTC](https://forum.inductiveautomation.com/t/perspective-parent-session-properties-to-child/81183/3 "2023-10-30T18:34:31Z")

</div>

Oh no so the locale is already available in the session.prop so I didn’t add custom property for this

---

<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 30, 2023, 6:46pm UTC](https://forum.inductiveautomation.com/t/perspective-parent-session-properties-to-child/81183/4 "2023-10-30T18:46:08Z")

</div>

> [@Nikhil\_M](#):
>
> nothing happens.

What do you _expect_ to happen?

Assuming the value of the locale selection dropdown is _ **bi-directionally** _ bound to the session locale property, swapping the session locale doesn't do anything to the session at large unless you have translations in place for the new locale.

Additionally, make sure the locale [values are supported](https://docs.inductiveautomation.com/display/DOC81/Localization+in+Perspective#:~:text=See%20this%20link%20for%20a%20full%20list%20of%20valid%20locale%20tags).

---

<div class="post-metadata">

**Author:** ![Nikhil\_M](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@Nikhil\_M](https://forum.inductiveautomation.com/u/Nikhil_M)\
**Post date:** [October 30, 2023, 7:43pm UTC](https://forum.inductiveautomation.com/t/perspective-parent-session-properties-to-child/81183/5 "2023-10-30T19:43:44Z")

</div>

Thanks it’s working now!

Apparently I was using ES as locale code instead of es-ES.
