originally posted in:BungieNetPlatform
Hi everybody, I've been following this group closely for a few weeks now, trying to improve my little Destiny stats website, and I hit a wall when people asked me when the french version was due. I tried to look into each endpoint, and I tried to add url parameters like we do for definitions, but nothing seems to work. In the manifest endpoint, we can see all the available languages, how can I apply this to definitions I'm getting on other endpoints? Thank you very much for your time.
-
Hi BinarMorker, I haven't personally tried these yet, but from what I've figured you can use this endpoint to get the available locales: http://www.bungie.net/platform//GetAvailableLocales/ Then, most (if not all) endpoints will let you use the 'lc' URL parameter to specify the locale you want. For example, this request would grab the character data (with definitions) in English for your Titan: http://www.bungie.net/platform/Destiny/2/Account/4611686018434621158/Character/2305843009219088994/?definitions=true&lc=en To get the French version, just change the 'lc' value to 'fr': http://www.bungie.net/platform/Destiny/2/Account/4611686018434621158/Character/2305843009219088994/?definitions=true&lc=fr Hope I helped :) Thanks, Vivek