Jump to content
McKay Development

How to change ERR language?


Recommended Posts

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?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...