DoctorMcKay/node-steam-tradeoffer-manager

Brazilian portuguese language

matheustav opened this issue · 2 comments

Hi, first of all, thanks for all of your awesome Steam related packages!

I'm trying to fetch inventory data using Brazilian portuguese. The docs states that language "Must be a 2-character language code like en or es.", but I already tried "br" and it doesn't work. "pt" uses Portugal portuguese.

I already tried "pt-BR", "brazilian" and other variants, but nothing seems to work.

Thanks!

pt-BR should work at least according to steamworks (https://partner.steamgames.com/doc/store/localization/languages), this might be a steam issue.

Unfortunately it doesn't work :(

I think the issue is related to the package "languages", which this project depends on, since its data doesn't mention brazilian portuguese:
https://github.com/joker-x/languages.js/blob/master/languages.json

I'm assuming this based on these lines:

if (this._language) {