Jump to content


Photo

How to change ERR language?

node.js node-steam-tradeoffer-manager

Best Answer Dr. McKay , 11 January 2019 - 03:50 PM

The error language is probably controlled by your Steam account language.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 PonyExpress

PonyExpress

    Newbie

  • Member
  • Pip
  • 9 posts

Posted 11 January 2019 - 11:32 AM

I'm not sure about steam-tradeoffer-manager, maybe my problem is related to steam-user.
I always received the text of errors (ERR) in English. But after launching a third-party program, now i get them in another language.
 
let client = new SteamUser(),
    manager = new TradeOfferManager({
        "steam": client,
        "language": "en"
    }),
    community = new SteamCommunity();
//...
let t = manager.createOffer(SID);
    t.getUserDetails((ERR, ME, THEM) => {
        if (ERR) {
            console.log("cant trade: " + ERR); // <<< not in English
        } else if (ME.escrowDays == 0 && THEM.escrowDays == 0) {
            console.log("all good");
        } else {
            console.log("escrowDays");
        }
   });

How can I return the language to English? (Global)

And can I get errors in a specific language if need?

 



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,883 posts

Posted 11 January 2019 - 03:50 PM   Best Answer

The error language is probably controlled by your Steam account language.



#3 PonyExpress

PonyExpress

    Newbie

  • Member
  • Pip
  • 9 posts

Posted 12 January 2019 - 03:36 AM

Thank you very much.
 
Although it was a bit strange for me to see messages not in English only after a year of use.


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,883 posts

Posted 12 January 2019 - 12:21 PM

All my modules do send a cookie requesting English text, but I guess it's not always respected.







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users