discord / gamesdk-and-dispatch

Public issue tracker for the Discord Game SDK and Dispatch
22 stars 7 forks source link

Discord GameSDK always returns "en-US" from a User's Locale. #4

Closed Jump-Suit closed 4 years ago

Jump-Suit commented 4 years ago

Even if a User switches to a different Locale in their Client, it still results in "en-US" been outputted.

msciotti commented 4 years ago

This occurs when you are not launching a game from our library. The behavior that we support is that when a game is launched from Discord's library, we pass a number of environment variables to your program:

Connecting to the SDK without launching this way does not pass those environment variables. We can look into supporting that.

Jump-Suit commented 4 years ago

That isn't the fault here... Since the GameSDK has to get the Locale from the User's Discord Client no? I am aware of environment variables being passed. The User's Locale has nothing to do with that. It'll always return en-US even if explicitly marked in a User's Discord Client Language is different... + I have no other native way of launching my game than through Discord Library with exception to builds not pushed to discord, and my Editor.