Added locale formatting support.