wikibase-sdk icon indicating copy to clipboard operation
wikibase-sdk copied to clipboard

List of sitelink languages has to be updated manually

Open EdJoPaTo opened this issue 4 years ago • 2 comments

Currently the list of sitelink languages has to be updated manually. When using the sitelinks of an entity and putting them all into getSitelinkData the ones with yet not known languages will fail. Updating the list will fix this until the next language arrives.

Any ideas how to approach this better than having a fixed list that needs manual updates?

EdJoPaTo avatar Jun 12 '20 20:06 EdJoPaTo

do you think having periodic updates, like with a cron job or something, could be enough to solve it?

maxlath avatar Jun 13 '20 08:06 maxlath

Updating the list on a regular basis would be a simple solution. But that also requires to update the projects depending on this library on a regular basis too.

Updating the languages on startup / regularly by code isn't currently possible as this library works without a data request library. supplying the current list to the getSitelinkData function seems strange to me too.

Not sure if there is a good solution besides the regular semi-automated update you suggested.

EdJoPaTo avatar Jun 13 '20 10:06 EdJoPaTo