# Perspective - Detect browser language

**URL:** <https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [August 30, 2020, 1:40pm UTC](https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195 "2020-08-30T13:40:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [August 30, 2020, 1:40pm UTC](https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195/1 "2020-08-30T13:40:08Z")

</div>

Is there an easy way to detect the client browser language ?

---

<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:** [August 31, 2020, 5:04am UTC](https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195/2 "2020-08-31T05:04:27Z")

</div>

`session.props.browserLocale`

Update:  
`session.props.locale` is what you should use. `session.props.browserLocale` is an old property from probably before the 8.0.0 release that has just hung around in my project.

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [August 31, 2020, 11:30am UTC](https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195/3 "2020-08-31T11:30:15Z")

</div>

Wow, I didn’t see that!!!

Thanks

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [August 31, 2020, 11:38am UTC](https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195/4 "2020-08-31T11:38:01Z")

</div>

I don’t have session.props.browserLocale!

 ![2020-08-31_07h36_23](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/9/09c483a8124e18a51a8e17006b14cb70d080cbfb.png)

---

<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:** [August 31, 2020, 12:02pm UTC](https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195/5 "2020-08-31T12:02:33Z")

</div>

Oh, you’re right, that property was re-named and still exists in my project since it’s been around forever. `session.props.locale` _should_ provide what you’re looking for.

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [August 31, 2020, 12:07pm UTC](https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195/6 "2020-08-31T12:07:49Z")

</div>

> [@cmallonee](#):
>
> session.props.locale

Is this local.prop.session initially set up by the browser or does it set up the browser?

I want to make sure this variable is set by the browser and not the other way around.

---

<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:** [August 31, 2020, 12:21pm UTC](https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195/7 "2020-08-31T12:21:38Z")

</div>

It looks like even if I modify that within the Designer new sessions will set the value to the locale in use by the browser.

Steps:

1. I set the locale to `fr-FR` within the project.
2. I placed a Label, and bound the label to session.props.locale`.
3. Label displayed “fr-FR”.
4. I saved the project.
5. I opened a new session to the View which contained the Label.
6. The Label displayed “en-US”.

I’m pretty sure that value can be used to SET the locale at runtime, but on session load I believe it will always pick up what the browser is using. If you modify the value after that then you’ve defined the locale to use yourself.

---

<div class="post-metadata">

**Author:** ![luc.martin](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@luc.martin](https://forum.inductiveautomation.com/u/luc.martin)\
**Post date:** [August 31, 2020, 12:22pm UTC](https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195/8 "2020-08-31T12:22:54Z")

</div>

OK, thanks

---

<div class="post-metadata">

**Author:** ![Mehdi\_MECHEDAL](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mehdi\_MECHEDAL](https://forum.inductiveautomation.com/u/Mehdi_MECHEDAL)\
**Post date:** [October 7, 2025, 1:51pm UTC](https://forum.inductiveautomation.com/t/perspective-detect-browser-language/38195/9 "2025-10-07T13:51:46Z")

</div>

In Project \> Project Properties:

Set:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/0/101ed36265a61e398c56d02bb176506d9aa649b4.png)
