When requesting meta=siteinfo for languages|languagevariants, Chinese language variants' outputs seem inconsistent with the desktop settings.
The screenshot of the Android app using the siteinfo endpoint.
The screenshot of the desktop zhwiki.
The static language list file should be updated for the language variants from meta=languageinfo instead of the language names from siteinfo.
Please note that we should send the corresponding licode when requesting the endpoint.
Current
'zh-cn' => '中文(中国大陆)', # Chinese (PRC) 'zh-hans' => '中文(简体)', # Mandarin Chinese (Simplified Chinese script) (cmn-hans) 'zh-hant' => '中文(繁體)', # Mandarin Chinese (Traditional Chinese script) (cmn-hant) 'zh-hk' => '中文(香港)', # Chinese (Hong Kong) 'zh-mo' => '中文(澳門)', # Chinese (Macau) 'zh-my' => '中文(马来西亚)', # Chinese (Malaysia) 'zh-sg' => '中文(新加坡)', # Chinese (Singapore) 'zh-tw' => '中文(臺灣)', # Chinese (Taiwan)
Proposed
'zh-cn' => '大陆简体', # Chinese (PRC) 'zh-hans' => '简体中文', # Mandarin Chinese (Simplified Chinese script) (cmn-hans) 'zh-hant' => '繁體中文', # Mandarin Chinese (Traditional Chinese script) (cmn-hant) 'zh-hk' => '香港繁體', # Chinese (Hong Kong) 'zh-mo' => '澳門繁體', # Chinese (Macau) 'zh-my' => '大马简体', # Chinese (Malaysia) 'zh-sg' => '新加坡简体', # Chinese (Singapore) 'zh-tw' => '臺灣正體', # Chinese (Taiwan)