diff --git a/src/Module.php b/src/Module.php index 2a9df33..8619dfb 100644 --- a/src/Module.php +++ b/src/Module.php @@ -187,7 +187,10 @@ public function createTranslations($e, $routeMatch) $sm = $e->getApplication()->getServiceManager(); $translator = $sm->get('translator'); - $translator->addTranslationFile('phparray', $transPath); + if (file_exists($transPath)){ + $translator->addTranslationFile('phparray', $transPath); + } + } }