Fixed locale message matching and package.json dependencies