Page MenuHomePhabricator

ScopedTypeaheadSearch: component respects user's language
Closed, ResolvedPublic

Description

As a user on Wikidata I want to use the Scoped Typeahead Search in my UI langauge.

Problem:
Currently, en is hardcoded in the Scoped Typeahead Search component as the languageCode used when searching. This should be updated to reflect the users UI language in the component and the search results.

Acceptance criteria:

  • The Scoped Typeahead Search reflects the users UI language in the component and in the search results

Notes
mw.config.get( 'wgUserLanguage' ) would be the value to use

Event Timeline

Story writing notes: mw.config.get( 'wgUserLanguage' ) would be the value to use

Change #1138079 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] Respect users' selected language for scoped typeahead search

https://gerrit.wikimedia.org/r/1138079

Change #1138079 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Respect users' selected language for scoped typeahead search

https://gerrit.wikimedia.org/r/1138079

Can you please add the link for where I can check this?