Update language name search index

I noticed some language names are not searchable. I made it so
that autonyms from language-data are added to the search index.
Without this, languages not present in Names.php or in the CLDR
extension are not searchable via the API except by language code.

Change-Id: I51a9e2eb15fb40963e6edbf1db76133d84de7291
This commit is contained in:
Niklas Laxström
2019-05-19 17:49:24 +02:00
parent ede9c683a9
commit 6939354e16
3 changed files with 3189 additions and 1080 deletions

View File

@@ -103,10 +103,12 @@ class LanguageSearchTest extends PHPUnit\Framework\TestCase {
'zh' => 'chinese',
'zh-cn' => 'chinese (china)',
'zh-hk' => 'chinese (hong kong)',
'zh-mo' => 'chinese (macau)',
'zh-my' => 'chinese (malaysia)',
'zh-min-nan' => 'chinese (min nan)',
'zh-sg' => 'chinese (singapore)',
'zh-tw' => 'chinese (taiwan)',
'zh-hans' => 'chinese simplified',
'zh-hans' => 'chinese simplificate',
'zh-hant' => 'chinese traditional',
'zh-classical' => 'chinese — classical chinese',
'gan' => 'chinese — gan chinese',