diff --git a/app/Console/Commands/Translations.php b/app/Console/Commands/Translations.php index af851adf..5c6a2b66 100644 --- a/app/Console/Commands/Translations.php +++ b/app/Console/Commands/Translations.php @@ -36,6 +36,10 @@ class Translations extends Command $defaultLocalesDir = $dir . '/' . $defaultLocales; $currentLocalesDir = $dir . '/' . $currentLocales; + if (!is_dir($currentLocalesDir)) { + File::makeDirectory($currentLocalesDir); + } + $this->compareTranslationsInDirectory($defaultLocalesDir, $currentLocalesDir); } @@ -57,7 +61,7 @@ class Translations extends Command $default = include($file); $checked = file_exists($currentDir . '/' . $fileName) ? include $currentDir . '/' . $fileName : []; $this->translations = &$checked; - + $this->checkForMissingTranslations($default, $checked, $currentDir, $fileName); }