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 and I can get you a quote and other details?