The app is sending BCP47 language code to the endpoints:
For Chinese (Taiwan) is:
zh-Hant-TW, but the Wikidata only accepts the old one: zh-tw.
Steps to replicate the issue (include links if applicable):
- Add Accept-Language: zh-tw or Accept-Language: zh-Hant-TW when requesting https://zh.wikipedia.org/api/rest_v1/page/mobile-html/八尺門的辯護人 to see the difference.
What happens?:
The Wikidata endpoint does not support BCP47 language code, and will fallback to zh-hant.
Accept-Language: zh-Hant, zh-Hant-TW
臺灣電視劇
Accept-Language: zh-TW
台灣電視劇
What should have happened instead?:
Should show the zh-tw one when requesting the endpoint with Accept-Language: zh-Hant-TW.
Accept-Language: zh-Hant
臺灣電視劇
Accept-Language: zh-TW, zh-Hant-TW
台灣電視劇