There is an issue found in the restbase test suite after some test failures:
It looks like language variants handling doesn't work properly on wikitext to mobile-html conversion.
This is the patch with the failing tests:
https://github.com/wikimedia/restbase/pull/1314