The Dwork family and local-global compatibility of the Langlands correspondence