JackSovr Posted April 2, 2018 Report Posted April 2, 2018 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. Quote
Dr. McKay Posted April 2, 2018 Report Posted April 2, 2018 market_hash_name is the same in all languages. Quote
JackSovr Posted April 3, 2018 Author Report Posted April 3, 2018 Okay.So the market_hash_name which i want to convet to other language..I think i got a way ,but it not easy.eg.Just like dota2 items "The International 2016 HUD"I need to make request "http://steamcommunity.com/market/listings/570/The%20International%202016%20HUD?l=schinese"Then get its chinese name..Its there a better way ?Thx for your reply~ Quote
Dr. McKay Posted April 3, 2018 Report Posted April 3, 2018 market_hash_name is the same in all languages. If you want the localized name, you're looking for market_name. Quote
JackSovr Posted April 3, 2018 Author Report Posted April 3, 2018 I saw the code "optional string market_name = 17;"tyvm . Quote
JackSovr Posted April 3, 2018 Author Report Posted April 3, 2018 (edited) I set var manager = new TradeOfferManager({ ... "language":"zh" }) but market_name also is English. Any idea.... Edited April 3, 2018 by JackSovr Quote
JackSovr Posted April 3, 2018 Author Report Posted April 3, 2018 (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 April 3, 2018 by JackSovr Quote
Recommended Posts
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.