add option for locale pattern