# \[Paid\] Set locale for SSO users

**URL:** https://meta.discourse.org/t/paid-set-locale-for-sso-users/80594
**Category:** Marketplace
**Created:** [2월 15, 2018, 2:46오전 UTC](https://meta.discourse.org/t/paid-set-locale-for-sso-users/80594 "2018-02-15T02:46:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)
#### Post date: [2월 15, 2018, 2:46오전 UTC](https://meta.discourse.org/t/paid-set-locale-for-sso-users/80594/1 "2018-02-15T02:46:03Z")

</div>

Hi Guys,

Our current SSO platform has the ability to add a local parameter to the query string we send to discourse.

Current we support the following languages “en”, “zh-Hans” [Simplified chinese], “zh-Hant” [Traditional chinese], “ja”, “ko”, “id”, “vi”, “ar”, “th”.  
**Note** : This is not an exhaustive list and we will keep on adding new languages.

Flow:  
1/ When a user logs in (SSO) for the **first time** (_=user creation_), we set Discourse language based on the specified “locale” parameter.

- If this parameter is missing or invalid, we log a warning in discourse log and keep default language.
- If requested language is missing from discourse, we also log a warning in discourse log and keep default language.

2/ Once a user created, we do not override the locale setting.

Technical:  
1/ The “locale” query string parameter is embedded within the sso payload  
2/ We own the server hosting Discourse (they are in AWS)  
2/ We are using the latest version of Discourse 2.0.0 beta (updated weekly)

How much would it cost to develop this plugin?

Thank you,  
Seb

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2월 15, 2018, 3:05오전 UTC](https://meta.discourse.org/t/paid-set-locale-for-sso-users/80594/3 "2018-02-15T03:05:15Z")

</div>

Just to be clear. You need to set the user locale preference for new users based on a parameter already being sent to Discourse?

Sounds like a simple add. Would you sending me an email at [joe@joebuhlig.com](mailto:joe@joebuhlig.com) and I can get you a quote and other details?

---

<div class="post-metadata">

### Author: ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)
#### Post date: [2월 15, 2018, 4:31오전 UTC](https://meta.discourse.org/t/paid-set-locale-for-sso-users/80594/4 "2018-02-15T04:31:52Z")

</div>

Taking that offline with Joe 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [3월 17, 2018, 4:32오전 UTC](https://meta.discourse.org/t/paid-set-locale-for-sso-users/80594/5 "2018-03-17T04:32:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
