allow injection of locale provider object