title: zf3 translate route - translator not found
body: <p>I need to realize a multilanguage site. Than i need to use i18n and translator but I've some problem with route translator</p>
  
  <p>This is my module.config.php    </p>
  
  <pre><code>{
  return [
      'router' =&gt; [
          'router' =&gt; [
              'router_class'           =&gt; TranslatorAwareTreeRouteStack::class,
          ],
          'routes' =&gt; [
              'home' =&gt; [
                  'type' =&gt; Literal::class,
                  'options' =&gt; [
                      'route'    =&gt; '/',
                      'defaults' =&gt; [
                          'controller' =&gt; Controller\IndexController::class,
                          'action'     =&gt; 'index',
                      ],
                  ],
              ],
              'application' =&gt; [
                  'type'    =&gt; Segment::class,
                  'options' =&gt; [
                      'route'    =&gt; '/{contact}',
                      'defaults' =&gt; [
                          'controller' =&gt; Controller\IndexController::class,
                          'action'     =&gt; 'index',
                      ],
                  ],
              ],
          ],
      ]};
      }
  </code></pre>
  
  <p>And this is my Module.php class</p>
  
  <pre><code> public function onBootstrap(MvcEvent $e)
      {
          /** @var \Zend\Mvc\I18n\Translator $translator */
  
          $translator = $e-&gt;getApplication()-&gt;getServiceManager()-&gt;get('MvcTranslator');
          $translator-&gt;addTranslationFilePattern(
              'phpArray',
              Resources::getBasePath(),
              Resources::getPatternForValidator()
          );
          AbstractValidator::setDefaultTranslator($translator);
      }       
  </code></pre>
  
  <p>When I start application I got this error</p>
  
  <pre><code>Zend\Router\Exception\RuntimeException: No translator provided in ..vendor\zendframework\zend-router\src\Http\Segment.php on line 372   
  </code></pre>
  
  <p>How can I pass translator to segment class? I need to use different class for translate?</p>