Jump to content
McKay Development

Recommended Posts

Posted

I want to get the other language of these items' market_hash_name 

I have tried to set TradeOfferManager's language property, but it doesnt work.

So can you give one way to make it..

I think need to set manager.createOffer("xxxxx&language=schinese")  like this?

Very appreciate.

Posted (edited)

I set   var manager = new TradeOfferManager({

                     ...

                      "language":"zh"
        })
 
but market_name also is English. Any idea....
Edited by JackSovr
Posted (edited)

I solved this..

I used a robot to look up other accounts inventories.

But when I make offer manager.createOffer("xxxx")

after loadPartnerInventory function .

The items names are not localized..

Then I look up the code .

I found the code in "steamcommunity/index.js"

 

this._setCookie(Request.cookie('Steam_Language=english'));
 
I changed this to "this._setCookie(Request.cookie('Steam_Language=schinese'));"
 
It worked ..
Before I changed code... I have tried to set language property in TradeOfferManager constructor.. It not worked ..
 
Really appreciate for  Dr.Mckay's working~
Edited by JackSovr

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...