JeroenDeDauw / QueryrAPI

🖹 REST API for Wikibase data
https://wikibase.consulting
7 stars 0 forks source link

Add language selection support #12

Open JeroenDeDauw opened 8 years ago

JeroenDeDauw commented 8 years ago

This is already supported internally for most endpoints. However it is not clear how to best let the user specify the language.

JeroenDeDauw commented 8 years ago

Accept-Language HTTP header is one approach

hay commented 8 years ago

Maybe using a lang URL parameter with optional comma separated ISO 639-1 codes?

That's what i use in my API server: http://api.haykranen.nl/wikidata/entity?q=Q20000&lang=fr,de