Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

i18n capabilities #16

Open
fehervalentin opened this issue Jun 7, 2020 · 0 comments
Open

i18n capabilities #16

fehervalentin opened this issue Jun 7, 2020 · 0 comments

Comments

@fehervalentin
Copy link

fehervalentin commented Jun 7, 2020

Related issue:
#15

Why is it that hard?

  1. Check the mentioner's language (profile or account or something)
  2. Original post language (maybe some metadata, or custom detection logic from the tweet body.
  3. 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!

  1. Twitter mention API provides a user object and there is a lang field in it.
  2. 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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant