# Server/Client Language variable

**URL:** <https://forums.plex.tv/t/server-client-language-variable/100970>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [April 27, 2015, 3:12am UTC](https://forums.plex.tv/t/server-client-language-variable/100970 "2015-04-27T03:12:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattrk](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@mattrk](https://forums.plex.tv/u/mattrk)\
**Post date:** [April 27, 2015, 3:12am UTC](https://forums.plex.tv/t/server-client-language-variable/100970/1 "2015-04-27T03:12:21Z")

</div>

The API i work with has the ability to return data in whatever language you request. For example, if i pass 'locale:enUS' to the API, the results are returned in English. ptBR returns results in&nbsp;Portuguese. And so on. So, my question is how can i see the language that the user has set for either the PMS server or client and pass that to my API? Is there a system variable i can use or query? Or is there some kind of function i can run to get this information? Most of the language questions on this forum were centered around localization so i wasn't having much luck finding anything.&nbsp;

&nbsp;

Thanks!

---

<div class="post-metadata">

**Author:** ![czukowski](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/czukowski/32/9008_2.png) [@czukowski](https://forums.plex.tv/u/czukowski)\
**Post date:** [April 27, 2015, 6:14pm UTC](https://forums.plex.tv/t/server-client-language-variable/100970/2 "2015-04-27T18:14:03Z")

</div>

The documented way is to use Locale.CurrentLocale ([described here](https://dev.plexapp.com/docs/api/localekit.html)). But there are some issues with it that I was inquiring about in [another thread](https://forums.plex.tv/topic/126807-another-localization-question/) some time ago.

TL;DR version: most of the times you won't get the correct value or any value at all, but the post in that thread marked as a "solution" links to a file that you may add to your channel to improve the results considerably, although not in all cases.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:48pm UTC](https://forums.plex.tv/t/server-client-language-variable/100970/3 "2020-01-08T19:48:34Z")

</div>


