Page MenuHomePhabricator

Update iOS hardcoded language variant codes to BCP 47
Closed, ResolvedPublic

Description

We need to update our hardcoded language variant codes in this file to use the BCP 47 format. This file is not auto-generated by any script, so can be modified directly.

The correct BCP 47 code can be found at this API endpoint (see bcp47 property).

https://www.mediawiki.org/w/api.php?action=query&format=json&meta=siteinfo&formatversion=2&siprop=languages%7Clanguagevariants&siinlanguagecode=en

Test Steps:
Update variant codes, then visit an article in one of the variant app languages (Serbian or Chinese, for example). Confirm the content reflects the correct preferred language variant.

  • Android
  • iOS

Background
T327379

Event Timeline

Tsevener added a subscriber: Mazevedo.
ABorbaWMF subscribed.

Looks good to me on 7.4.0 (2420)

JTannerWMF claimed this task.