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 support? I think the spoiler plugin has a nice clean and simply config example here:
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.