Show wikidata field search results in the user's language when possible

This commit is contained in:
Quincy Morgan
2020-03-31 13:00:52 -07:00
parent a1af118f0e
commit 84a55606ad
+6 -1
View File
@@ -23,13 +23,18 @@ export default {
return;
}
var lang = this.languagesToQuery()[0];
var url = apibase + utilQsString({
action: 'wbsearchentities',
format: 'json',
formatversion: 2,
search: query,
type: 'item',
language: this.languagesToQuery()[0],
// the language to search
language: lang,
// the langauge for the label and description in the result
uselang: lang,
limit: 10,
origin: '*'
});