Local-global compatibility and monodromy