Page MenuHomePhabricator

ScopedTypeaheadSearch: replace all user-visible text with translatable messages
Closed, ResolvedPublic

Description

All the user-visible text in the ScopedTypeaheadComponent should be handed by translatable messages. There's at least two remaining instances of hard-coded English text, both in menuItems:

const menuItems = [
	{
		label: 'Search entities',
		description: 'Find different types of Wikidata entries',
		items: menuItemData
	}
];

We'll need to find, or more likely create, appropriate messages for these and include them with the resource loader.

As part of this ticket, we should also look over the rest of the component for any other bits of text that we've missed.

Acceptance Criteria

  • these strings are replaced with translated messages
  • any newly added messages have documentation in repo/i18n/qqq.json

Event Timeline

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

[mediawiki/extensions/Wikibase@master] Translate remaining strings in scoped typeahead search component

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

Change #1132539 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Translate remaining strings in scoped typeahead search component

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