The LanguageSearch API currently resides inside the ULS extension, along with all the related code base
As part of rewriting ULS, and including it within MediaWiki/Codex (TBD), we want to move this APIs to MediaWiki core.
The following classes have to be moved:
- ApiLanguageSearch
- LanguageNameSearch
- LanguageNameIndexer - Maintenance script to read cldr data and generate the LanguageNameSearchData
- LanguageNameSearchData - Data file generated by LanguageNameIndexer
We should ensure that the current consumers are not affected by this migration.
Things to decide:
- Whether the new LanguageSearch API should be an Action API or a REST API
Decision: We've decided to stick with Action API for backward compatibility and to limit the scope of the work.
- The LanguageNameIndexer maintenance script relies on CLDR extension's data to generate the LanguageNameSearchData. Moving the script to MediaWiki would cause it to become dependent on the CLDR extension.
Decision: The dependency on CLDR is acceptable for now. It's mostly us devs who will run this script periodically. There isn't really any point running the script without it.

