Add localization support for datePattern.