Nereziel / cs2-WeaponPaints

GNU General Public License v3.0
193 stars 51 forks source link

Translate `paint_name` to any language #198

Closed yichen11818 closed 6 months ago

yichen11818 commented 6 months ago

This project may not need this translation, but I believe it is helpful for Chinese users. i am willing to share it with anyone who might be interested :) i translatedagents.json gloves.json skins.json

emreires commented 6 months ago

Can you please share the function that was used to retrieve the API data in different languages? I know you only change the "en" to the target language code, but retrieving them in the same structure as in the data folder?

https://github.com/Nereziel/cs2-WeaponPaints/issues/58

yichen11818 commented 6 months ago

Can you please share the function that was used to retrieve the API data in different languages? I know you only change the "en" to the target language code, but retrieving them in the same structure as in the data folder?

58

https://github.com/Nereziel/cs2-WeaponPaints/pull/198/commits/64d53708e00552ab2c75969af68039cd533a048e you can use this with two way

emreires commented 6 months ago

Man, fr? Are you using the Google Translate to do it? lmao, just use the API, it has the languages...

yichen11818 commented 6 months ago

Man, fr? Are you using the Google Translate to do it? lmao, just use the API, it has the languages...

i just see that api. its much better and esaier,lmao.ill update soon

yichen11818 commented 6 months ago

Man, fr? Are you using the Google Translate to do it? lmao, just use the API, it has the languages...

now i use that api :)