The [[ https://meta.wikimedia.org/wiki/Special:ApiSandbox#action=languagesearch&format=json&search=hindi&formatversion=2 | 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:
1. `ApiLanguageSearch`
2. `LanguageNameSearch`
3. `LanguageNameIndexer` - Maintenance script to read `cldr` data and generate the `LanguageNameSearchData`
4. `LanguageNameSearchData` - Data file generated by `LanguageNameIndexer`
We should ensure that the [[ https://codesearch.wmcloud.org/search/?q=languagesearch&files=&excludeFiles=json&repos= | current consumers ]] are not affected by this migration.
Things to decide:
- [ ] Whether the new `LangaugeSearch` API should be an Action API or a REST API
- [] The `LanguageNameIndexer` maintenance script relies on CLDR extension's data to generate the `LangaugeNameSearchData`. Moving the script to MediaWiki would cause it to become dependent on the CLDR extension.