eljoey / BDO-Api-Helper

22 stars 4 forks source link

More languages #24

Closed Kleiduko closed 2 years ago

Kleiduko commented 2 years ago

Hello,

is it possible to support more languages ?

eljoey commented 2 years ago

Looks like there is Dutch, French, and Spanish. Shouldn't have to change much to add if you want one of those.

Kleiduko commented 2 years ago

Then you don't have to do the work because I need German

eljoey commented 2 years ago

So apparently it is German, I just thought it was dutch because of how it was spelled. I should be able to add it in a bit.

eljoey commented 2 years ago

@Kleiduko Lang support has been added. You can add a 'lang' query to your route and set it as 'de'.

ex.

bdo-api-helper.herokuapp.com/api/item-search/705510?enhLevel=0&region=eu&lang=de

will return:

{
    "name": "Ohrring: Manos",
    "id": 705510,
    "price": 187000000,
    "count": 35,
    "enhanceGrade": 0,
    "totalTrades": 176688,
    "icon": "https://s1.pearlcdn.com/NAEU/TradeMarket/Common/img/BDO/item/705510.png",
    "grade": 4
}
Kleiduko commented 2 years ago

Thanks to you