shadow: do not use translation when generate pattern hash