# Switch language via URL?

**URL:** https://meta.discourse.org/t/switch-language-via-url/28937
**Category:** Support
**Created:** [May 18, 2015, 6:45am UTC](https://meta.discourse.org/t/switch-language-via-url/28937 "2015-05-18T06:45:51Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [April 10, 2018, 4:07pm UTC](https://meta.discourse.org/t/switch-language-via-url/28937/16 "2018-04-10T16:07:16Z")

</div>

Adding the ability to set the locale through a query string could be done through a plugin. The code for setting the locale through the Accept Language header was initially in a plugin: [https://github.com/scossar/variable-language](https://github.com/scossar/variable-language)

There is an issue with setting the locale for anonymous users for on sites that are using a CDN. It can cause the wrong locale files to be served to anonymous users. See: [Swedish? meta just showed me the UI in Swedish](https://meta.discourse.org/t/swedish-meta-just-showed-me-the-ui-in-swedish/41137). For this reason, I think the approach that you have brought up in this post - [Set language for SSO users - #5 by jeanmonod](https://meta.discourse.org/t/set-language-for-sso-users/78458/5) - would be a better candidate for a PR.

---

_[View the full topic](https://meta.discourse.org/t/switch-language-via-url/28937)._
