How to change the language of the events?
Closed this issue · 5 comments
Is there an example code on how to change the language of the events and gift names like you can do in the node version of this app with:
clientParams: {
"app_language": "en-US",
"device_platform": "web"
},
?
I haven't had time to test if the gift names change, but it seems like it does based on the param.
add your Location in web_presets.py:32
set your location in web_settings.py.py:16
@bearbarmaley thanks for the help! This consists in me changing the package code right? It means I will have to change this every time I update or reinstall the package?
Awesome. I just wanted to be sure because Python is not really my thing yet. Thanks a lot! If I have the time I will implement this correctly + the feature to not get the list of past 6 - 10 messages when connecting, which I believe is also not implemented here yet.
Right, so it was intended for this to be already possible, but there was a little bug in passing the kwargs. I've fixed this for you in 30f58c1.
client = TikTokLiveClient(
unique_id="@tv_asahi_news",
web_kwargs={
"httpx_kwargs": {
"params": {
"app_language": "en-US",
"device_platform": "web"
}
}
}
)
pip install --upgrade TikTokLive==6.2.1.post1