Support parsing Android language resource codes (e.g. zh-rTW).