Looking for a way to define a view helper via configuration. That helper should be created via callback factory and have a dependency injected in constructor, as per documentation here: Registering Helpers
So there we go with a helper itself:
class Locale extends AbstractHelper
{
protected $localeService;