diff --git a/app/Console/Commands/Translations.php b/app/Console/Commands/Translations.php index aca0693c..333cb971 100644 --- a/app/Console/Commands/Translations.php +++ b/app/Console/Commands/Translations.php @@ -38,6 +38,15 @@ class Translations extends Command if (!is_dir($defaultLocalesDir)) { // this is the place for checking for submodules + + $modulePath = dirname(dirname($dir)); + + if (file_exists($modulePath . '/info.php')) { + $modules = File::directories($modulePath); + foreach ($modules as $module) { + $this->call('translate:dir', ['dir' => $module . '/Resources/lang']); + } + } return; }