add ability to configure a locale provider