Hi Dmitry,

Great, thank you!

It looks like "uselang" still needs to be added to the documentation for
this API action:

https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities

On Fri, Oct 16, 2020 at 9:46 AM Dmitry Brant <[email protected]> wrote:

> Yep, just add the "uselang" parameter:
>
>
> https://www.wikidata.org/w/api.php?action=wbsearchentities&language=fr&type=item&search=m&uselang=fr
>
>
>
> On Fri, Oct 16, 2020 at 9:37 AM Yaron Koren <[email protected]> wrote:
>
>> Hi,
>>
>> When you call the "wbsearchentities" API, the main label and description
>> returned for each item are always hardcoded in English. (Which is strange.)
>> Thankfully, it also returns the label for each item in the specified
>> language - here is an example:
>>
>>
>> https://www.wikidata.org/w/api.php?action=wbsearchentities&language=fr&type=item&search=m
>>
>> However, it doesn't seem like there's any way to get the *description* of
>> each item in the specified language. Is there?
>>
>> -Yaron
>>
>> --
>> WikiWorks · MediaWiki Consulting · http://wikiworks.com
>> _______________________________________________
>> Wikidata mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/wikidata
>>
>
>
> --
> Dmitry Brant
> Senior Software Engineer (Android)
> Wikimedia Foundation
> https://www.mediawiki.org/wiki/Wikimedia_mobile_engineering
>
> _______________________________________________
> Wikidata mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikidata
>


-- 
WikiWorks · MediaWiki Consulting · http://wikiworks.com
_______________________________________________
Wikidata mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata

Reply via email to