fix language name lookup

(the JSON file format is different than the response returned by
langcodes.json in HQ)