Fix language lookup bug in translation module