# Steam Profile Onebox plugin

**URL:** <https://meta.discourse.org/t/steam-profile-onebox-plugin/35792>\
**Category:** Plugin\
**Created:** [19 Novembre 2015, 12:51pm UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792 "2015-11-19T12:51:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![fearlessfrog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fearlessfrog/32/119653_2.png) [@fearlessfrog](https://meta.discourse.org/u/fearlessfrog)\
**Post date:** [19 Novembre 2015, 11:13pm UTC](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792/3 "2015-11-19T23:13:41Z")

</div>

> [@MiguelAngelLV](#):
>
> I would like add “auto” language

Nice!

I don’t think there is anything in the Onebox engine that tells you server locale info that would allow you to form that URL dependent on default site language. The alternative would be something from the client like Accept-Language headers on the request, but they aren’t always reliable or 1 to 1 mapping. Defaulting to Spanish isn’t ideal for some.

How about using a config settings list, and let the plugin set-up in the plug config menu UI choose the languages that [steamsignature.com](http://steamsignature.com) support? I think the spoiler plugin has a nice clean and simply config example here:

[https://github.com/discourse/discourse-spoiler-alert](https://github.com/discourse/discourse-spoiler-alert)

So in summary, use a

```
enabled_site_setting :steam_signature_language

```

and something like:

```
<img src='http://steamsignature.com/status/#{SiteSetting.steam_signature_language}/#{steamid}.png'

```

Simplest way I can think of that it could work.

---

_[View the full topic](https://meta.discourse.org/t/steam-profile-onebox-plugin/35792)._
