Mixaill / galaxy-integration-gw2

GOG Galaxy 2.0 Guild Wars 2 integration
MIT License
17 stars 3 forks source link

Add Language Support for Achievments #9

Open kurim opened 4 years ago

kurim commented 4 years ago

May be you can include the lang Tag in api, based on GOG/OS language and set if not available to en.

Available languages are: en, es, de, fr and zh

For example: https://api.guildwars2.com/v2/achievements/categories/1?lang=de response: "name": "Bezwinger",

https://api.guildwars2.com/v2/achievements/categories/1?lang=fr response: "name": "Pourfendeur",

Mixaill commented 4 years ago

@FriendsOfGalaxy Is it possible to specify language for achievements?

Something like

{
  "releasePerPlatformId":"gw2_guild_wars_2",
  "name": {
      "*": "Drake Slayer",
      "en": "Drake Slayer",
      "de": "Lindwurm-Bezwinger"
   }, 
  "description": {
      "*": "Enough of these massive drakes on Tyria's massive plains.,
      "en": "Enough of these massive drakes on Tyria's massive plains.",
      "de": "Genug von diesen riesigen Lindwürmern auf Tyrias riesigen Ebenen."
   }, 
  "apiKey":"5",
  "imageUrlUnlocked":"http://gw2.friends-of-friends-of-galaxy.org/assets/achievement-earned.png",
  "imageUrlLocked":"http://gw2.friends-of-friends-of-galaxy.org/assets/achievement-unearned.png"
}
FriendsOfGalaxy commented 4 years ago

No, currently it is not supported. Probably in the future