How to get translator base_dir from a URI in Zend Framework 2?
<p>Helle ZF2 Guru! Normally we get the zf2 translation file from a directory in Appliction module.config.php like this: <code>  'base_dir' => <strong>DIR</strong> . '/../language' </code>.
Is it possible to get it from a Uri?</p>

<pre><code>Application module.config.php:
    'translator' =&gt; array(
             'locale' =&gt; 'en_US',
             'translation_file_patterns' =&gt; array(
                 array(
                     'type'     =&gt; 'gettext',
                      'base_dir' =&gt; __DIR__ . '/../language',//http://example.com/
                     'pattern'  =&gt; '%s.mo',
                 ),
             ),
         ),
</code></pre>

<p>Why this is important?<br>Correct me if I am wrong! In a multilingual application, language files are static files and for a real world application any static files better be on cloud like <code>AWS CloudFront or CDON</code> for better performance of Application and longer caching period.</p>