mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 23:44:47 +02:00
Show wikidata field search results in the user's language when possible
This commit is contained in:
@@ -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: '*'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user