As a user of screen readers, I want my scree reader the label and description in the correct language in order to understand them well.
**Problem:**
Right now the wbsearchentities API does not return the language for labels and descriptions. It should.
**Example:**
```
{
"searchinfo": {
"search": "\u0645\u0644\u0639\u0628 \u0648\u064a\u0643\u064a \u062f\u0627\u062a\u0627"
},
"search": [
{
"id": "Q4115189",
"title": "Q4115189",
"pageid": 4246474,
"repository": "wikidata",
"url": "//www.wikidata.org/wiki/Q4115189",
"concepturi": "http://www.wikidata.org/entity/Q4115189",
"label": "\u0645\u0644\u0639\u0628 \u0648\u064a\u0643\u064a \u062f\u0627\u062a\u0627",
"description": "item for experimenting",
"match": {
"type": "label",
"language": "ar",
"text": "\u0645\u0644\u0639\u0628 \u0648\u064a\u0643\u064a \u062f\u0627\u062a\u0627"
}
}
],
"success": 1
}
```
We want something like this:
```
{
"searchinfo": {
"search": "\u0645\u0644\u0639\u0628 \u0648\u064a\u0643\u064a \u062f\u0627\u062a\u0627"
},
"search": [
{
"id": "Q4115189",
"title": "Q4115189",
"pageid": 4246474,
"repository": "wikidata",
"url": "//www.wikidata.org/wiki/Q4115189",
"concepturi": "http://www.wikidata.org/entity/Q4115189",
"label": "\u0645\u0644\u0639\u0628 \u0648\u064a\u0643\u064a \u062f\u0627\u062a\u0627",
"description": "item for experimenting",
"match": {
"type": "label",
"language": "ar",
"text": "\u0645\u0644\u0639\u0628 \u0648\u064a\u0643\u064a \u062f\u0627\u062a\u0627"
},
"display": {
"label" {
"language":"ar",
"text": "\u0645\u0644\u0639\u0628 \u0648\u064a\u0643\u064a \u062f\u0627\u062a\u0627"
},
"description": {
"language":"en",
"text": "item for experimenting"
}
}
}
],
"success": 1
}
```
**BDD**
GIVEN
AND
WHEN
AND
THEN
AND
**Acceptance criteria:**
*
**Original report:**
wbsearchentities used to return label, description, and (if matched) aliases in the requested search language (or fallback language of that). This chanegd with T90692, which introduced an internal search interface that would provide the matched term in the search language (or one its fallback languages) and display terms (a label and a description) in the user language (or one of its fallback languages).
wbsearchentities will currently return the label and description in the user language, and the (single) matched term in the "aliases" slot, as plain strings. The rationale for this is the main use case for the "aliases" field: it allows the UI to show //why// a term was returned as a result to the search. In addition to the old "aliases" field, wbsearchentities now returns a "matched" field with the matched term as a full term structure.
We should add a "display" field, which would contain the full term structures (including the actual language) of the label and description. The old label, description, and alias fields should be deprecated. The Wikibase UI should be changed to only use the "matched" and "display" fields.