CyberCRI / learn-ext

WeLearn Browser Extension
https://welearn.cri-paris.org
MIT License
11 stars 1 forks source link

[French language support] Contextual Wikipedia API endpoints #14

Closed prashnts closed 5 years ago

prashnts commented 5 years ago

Based on the page language, obtained from the new endpoint as mentioned in #13, we will need to make the following modifications to the wikipedia apis called from the extension:

prashnts commented 5 years ago

Implemented in 7c6dc74348ee9b8a51ac65366c36212482d4cf37 without any breaking changes. Additional parameter lang, which should use two-letter language code can now be provided to use a particular wikipedia server.

As a default behaviour, the methods falls back to using english wikipedia.