Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get wikipedia extract based on device language #1083

Open
lydavid opened this issue Aug 28, 2024 · 3 comments
Open

Get wikipedia extract based on device language #1083

lydavid opened this issue Aug 28, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@lydavid
Copy link
Owner

lydavid commented Aug 28, 2024

ex. https://musicbrainz.org/artist/6825ace2-3563-4ac5-8d85-c7bf1334bd2c

related: #239

@lydavid lydavid added the enhancement New feature or request label Aug 28, 2024
@lydavid
Copy link
Owner Author

lydavid commented Aug 28, 2024

https://www.wikidata.org/w/api.php?action=wbgetentities&formatversion=2&ids=Q109358519&props=sitelinks%2Furls&format=json

{
  "entities": {
    "Q109358519": {
      "type": "item",
      "id": "Q109358519",
      "sitelinks": {
        "jawiki": {
          "site": "jawiki",
          "title": "月詠み",
          "badges": [],
          "url": "https://ja.wikipedia.org/wiki/%E6%9C%88%E8%A9%A0%E3%81%BF"
        },
        "viwiki": {
          "site": "viwiki",
          "title": "Tsukuyomi (ban nhạc)",
          "badges": [],
          "url": "https://vi.wikipedia.org/wiki/Tsukuyomi_(ban_nh%E1%BA%A1c)"
        }
      }
    }
  },
  "success": 1
}

@lydavid
Copy link
Owner Author

lydavid commented Oct 3, 2024

@lydavid
Copy link
Owner Author

lydavid commented Oct 6, 2024

How do I link between a country code and a language code?

@lydavid lydavid changed the title If an artist does not have have a EN wikipedia page from wikidata, fallback to its area Get wikipedia extract based on device language Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant