Page MenuHomePhabricator

Langlinks endpoint is not returning articles for no.wikipedia.org on KaiOS
Closed, ResolvedPublicBUG REPORT

Description

There was a bug in the iOS app where the Article View > Choose alternate language > Language list filtered out the "Norwegian (Bokmål)" result even though it exists in no.wikipedia.org. It looks like this bug exists on KaiOS too.

This is because the subdomain code and language code differs for this wiki (subdomain is no.wikipedia.org and language code is nb). The results from the langlinks endpoint returns it under "nb" rather than "no", so if you are only looking for "no" you will have problems when filtering for an alternate language (see here in the KaiOS codebase).

Note:
iOS fixed this by adding an additional property with "nb" to this object and adding the additional check when showing the article languages list.