Bail out early if an invalid language is used.