i18n capabilities
Opened this issue · 0 comments
fehervalentin commented
Related issue:
#15
Why is it that hard?
- Check the mentioner's language (profile or account or something)
- Original post language (maybe some metadata, or custom detection logic from the tweet body.
- A custom bot parameter e.g.: @this_vid en or @this_vid_en or @this_vid lang:en or something
I do not want to fork the repository. I might open a pull request with a solution, but I need your guidance!
- Twitter mention API provides a user object and there is a lang field in it.
- The code is looking for the referenced tweet as well and twitter status lookup API provides a similar (if not the same) user object with a lang field
So as far as I see we can accomplish the i18n-ing. I can create a pull request.
Any extra info @shalvah?
Massive edit:
https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/user-object
lang | null | Value will be set to null. Still available via GET account/settings as language
Oh what a pity!